SLIs, SLOs, error budgets, and burn-rate alerting

An SLI is good events over valid events, measured near the user. The SLO is a target just above what users need, and the error budget is what you spend on risk.

Read the briefing
About 8 min to read 9 drills

What to remember

  1. 100% is the wrong target. Each extra nine costs ~10× and users cannot tell it from the previous one through their own network.
  2. Error budget = 1 − SLO, and it is a currency. 99.9% over 30 days is 43 minutes. Incidents and risky launches spend the same budget.
  3. Burn rate 14.4× over an hour is 2% of a monthly budget. That is the standard fast page. 6× over 6 hours is the slower one.
  4. Measure as close to the user as you can. Server-side success with a broken CDN is a green dashboard and an outage.
  5. Internal platforms need SLOs too. CI queue time, deploy success. The value is an agreed number, not a high one.

The big picture

A service level indicator (SLI) measures what users experience as a ratio of good events to valid events; a service level objective (SLO) sets a target for that ratio over a window; the error budget is what the target leaves over, and burn rate is how fast you are spending it. Interviewers use this node to separate people who can recite "99.9%" from people who can derive it, defend it against "why not 100%", turn it into 43.2 minutes and a paging rule, and say what the organisation does when the budget runs out.

The mental model

A bank account denominated in failed requests. The SLO fixes the monthly deposit (0.1% of requests for 99.9%); every failed request, whether from an outage, a bad deploy or a dependency, is a withdrawal; burn rate is the withdrawal speed relative to the deposit rate (1x empties the account exactly at month end, 14.4x empties it in about two days); alerts watch the speed, not the balance; and a policy agreed in calm says what the team does when the balance nears zero.

In depth

SLIs: ratios of good to valid events, measured where the user is

An SLI is good events / valid events over a period. For a request-driven service, availability is non-5xx responses divided by valid requests, and latency is requests completed under a threshold divided by valid requests. The word valid does real work: client errors (4xx) are excluded because the user asked for something that cannot be served; health checks and synthetic probes are excluded because they are not users; requests during a planned maintenance window still count, because users do not read your calendar.

Measure as close to the user as you control, from real traffic: the load balancer or edge proxy, not the application's own opinion of itself. A process reporting healthy measures its self-image; a balancer counting 5xx and elapsed time measures the outcome. Client-side telemetry is closer still but noisy and incomplete, so use it to check that the edge SLI tracks what users actually see rather than as the SLI.

Choose a handful of SLIs per user journey (checkout, search, login), not one per endpoint or one per metric the system emits. The Workbook's menu is availability, latency, freshness, correctness, durability and, for pipelines, throughput and coverage. Systems that serve data need a freshness or correctness SLI, because a fast 200 carrying stale data is a failure the availability SLI cannot see. A minimal PromQL error-ratio SLI at the edge:

sum(rate(http_requests_total{job="checkout",code=~"5.."}[5m]))
  / sum(rate(http_requests_total{job="checkout",code!~"4.."}[5m]))

Whatever you choose, write the specification down: which events count, where they are measured, and why. An SLI nobody can restate is an SLI nobody will trust at 03:00.

Targets: why 100% is wrong and how a number is chosen

Three arguments decide a target. Cost: each additional nine roughly multiplies engineering, redundancy and operational cost by ten while dividing the error budget by ten. Perception: a user reaching you through home Wi-Fi, a mobile carrier and a laptop that sleeps sees perhaps 99.9% availability of the path itself, so nines beyond that are invisible to them. Evidence: a target the system has not demonstrated is a wish, and the budget it implies is already spent.

The nines for a rolling 30-day window (43,200 minutes):

SLO budget as full outage what it implies
99% 7.2 h weekly incidents are survivable
99.9% 43.2 min humans can respond; one bad deploy a month
99.95% 21.6 min tight but human-paced
99.99% 4.3 min detection plus mitigation under four minutes: automation only
99.999% 26 s no human in the loop anywhere

So the recipe is: look at demonstrated performance over the last quarter, look at what users actually need and complain about, and pick the loosest target users are happy with that the service has shown it can meet, leaving a gap for change. If last quarter measured 99.94%, propose 99.9%, not 99.99%: the latter is broken on day one and forbids every deploy. The team's aspirations belong in the roadmap; the SLO is a contract about today. Revisit it quarterly against both the measurements and the complaints.

Error budget: the currency and the policy

Error budget = 1 − SLO, applied to the window's events. For 99.9% over 30 days that is 0.1% of requests, or 43.2 minutes of every request failing, or any mixture. Convert incidents to full-outage-equivalent minutes to compare them: error fraction × duration. Half of requests failing for 20 minutes is 10 minutes of budget; 12% failing for 53 minutes is 6.4 minutes, about 15% of the month. At 800 requests/s the same budget is 0.001 × 800 × 2,592,000 s ≈ 2.07 million failed requests.

The budget is spent by whatever makes requests fail: outages, partial degradations, canaries gone wrong, migrations, dependency failures. Deploys are usually the largest consumer, which is the point: the budget prices the risk of change, and that makes it the shared currency between shipping features and doing reliability work.

What happens when the budget is nearly gone is decided before it happens, with product, in an error budget policy. A typical one: when the budget is exhausted or projected to be, risky launches pause until it recovers; fixes, rollbacks and reliability work continue; engineering time goes to the largest budget consumers; and the team reviews whether the SLO or the SLI is wrong. The policy is executed during a burn, never negotiated during one. A budget nobody enforces is a dashboard, not a budget.

Burn rate and multi-window, multi-burn-rate alerting

Burn rate is how fast you spend budget relative to the rate that would spend it exactly by the end of the window:

burn rate = observed error ratio / (1 − SLO)

For a 99.9% SLO the budget fraction is 0.001, so a 1.44% error ratio is a 14.4x burn. At 1x the budget lasts the whole 30 days; at 14.4x it lasts 30 / 14.4 ≈ 2.1 days; at 6x, five days.

Alerting on a raw ratio fails two ways: a short window is noisy, a long window is slow to fire and slow to clear. The Workbook pairs a long window (significance) with a short window (reset) at the same burn-rate threshold, and runs several pairs for different burn speeds:

burn rate long window short window budget spent when it fires exhausted in action
14.4x 1 h 5 m 2% ~50 h page
6x 6 h 30 m 5% 5 d page
3x 1 d 2 h 10% 10 d ticket
1x 3 d 6 h 10% 30 d ticket

Budget spent at detection = burn rate × window / 30 d: 14.4 × 1 h / 720 h = 2%. As a Prometheus rule over recording rules that produce the error ratios:

- alert: CheckoutErrorBudgetBurn
  expr: |
    (slo:sli_error:ratio_rate1h > 14.4 * 0.001 and slo:sli_error:ratio_rate5m > 14.4 * 0.001)
    or
    (slo:sli_error:ratio_rate6h > 6 * 0.001 and slo:sli_error:ratio_rate30m > 6 * 0.001)
  labels: { severity: page }

Write thresholds as multiplier × budget fraction so the SLO they assume is visible; a bare 0.00144 is a 99.99% rule waiting to page a 99.9% service ten times too often. Detection time: the long window's average crosses threshold T at burn B after (T / B) × window, so a 12% error burst (120x) pages in about 7 minutes, a 16x burn in 54, and a burn under 1x never pages, which is correct: it belongs on the budget dashboard.

Percentiles: why p50 never pages

Latency SLIs use high percentiles or, better, a good-fast ratio (requests under the threshold divided by valid requests), because the median hides the tail users actually hit. A page that fans out to 100 backend calls experiences the backend's p99 on 1 − 0.99^100 ≈ 63% of loads; at p99.9 it is still 10%. The tail is the user's typical experience, not an edge case.

A p50 shift is a useful signal: it usually means capacity or a regression, and it belongs on a dashboard or in a ticket. It is never a page, because users do not feel it and it says nothing about the SLO. Means are worse than medians for the same reason plus one: a few timeouts at 30 s drag the mean without telling you how many users waited.

In Prometheus, express the latency SLI from histogram buckets with an edge at the SLO threshold, e.g. sum(rate(http_request_duration_seconds_bucket{le="0.5"}[5m])) / sum(rate(http_request_duration_seconds_count[5m])). This is a ratio, so it burns budget and alerts exactly like availability; histogram_quantile is for dashboards and its precision is bounded by bucket edges, so pick the buckets around the thresholds you promise.

SLOs for internal platforms

Internal services need SLOs too, and the interview question is usually "what would you set for the CI system / the internal API gateway / the deploy tool". The method is identical: find the consumer, ask what they need, measure it where they experience it. CI queue time under 5 minutes for 95% of builds; deploy success rate 99%; internal API p99 under 200 ms for 99.5% of requests. Targets are typically lower than customer-facing ones because the consumers are engineers with workarounds and the cost of nines is the same.

The value of an internal SLO is not a high number; it is an explicit, agreed level with an error budget, so that "CI is slow" becomes "CI missed its SLO for three days, here is the budget burn, here is the policy" and a platform team can prioritise against evidence instead of the loudest complaint. Internal SLOs also protect the platform team: a documented target is a defence against implicit expectations of 100%.

Myths and facts

Myth: A higher SLO is always better; we should promise 99.99% to show we care.

Fact: Each nine costs about 10x and shrinks the budget 10x; a target above demonstrated performance is broken from day one and forbids every change. Pick the loosest target users are happy with that the system has shown it can meet.

Myth: A burn rate of 14.4 means the error rate is 14.4%.

Fact: Burn rate is a multiplier of the budget rate: 14.4x on a 99.9% SLO is a 1.44% error ratio (14.4 × 0.001). The same 14.4x on a 99.99% SLO is 0.144%.

Myth: The error budget resets after each incident, or at the start of each month.

Fact: SLOs use a rolling window (usually 30 days); an incident's cost rolls out of the window only when its date does, and nothing resets when an incident closes.

Myth: p50 latency is a fine SLI: it is what the typical user sees.

Fact: A page fanning out to 100 calls sees the p99 on about 63% of loads; the tail is the typical experience. Latency SLIs use high percentiles or a good-fast ratio; p50 shifts are dashboard signals.

Myth: Alerting on the SLO means paging when the SLO is breached.

Fact: Breach is the end state; alerts fire on burn rate so a human intervenes while budget remains. A 14.4x burn pages having spent 2%, not 100%.

Myth: Uptime is the availability SLI.

Fact: Request-based availability counts failed requests, so a 50% degradation is measured as such; uptime treats a service returning 50% errors as 'up' and a 10-second blip at 03:00 the same as one at peak.

How pros do it

  • Define every SLI as good / valid events measured at the edge from real traffic; exclude 4xx, health checks and probes explicitly, and write the specification down.
  • Derive targets from last quarter's measured performance and user need, and record the derivation next to the target so the 'why not 99.99%' conversation has evidence.
  • State the budget both ways (0.1% of requests and 43.2 minutes per 30 days) and show remaining budget plus burn by cause on the team's main dashboard.
  • Alert with the multi-window, multi-burn-rate table; write thresholds as multiplier × (1 − SLO) so the assumed SLO is visible in the rule.
  • Build latency SLIs as a good-fast ratio from histogram buckets with an edge at the SLO threshold; never page on p50 or on a mean.
  • Agree the error-budget policy with product before it is needed, including what pauses (risky launches) and what continues (fixes, reliability work).
  • Review SLOs quarterly against measurements and complaints; tighten only when users need it and the system has demonstrated it, loosen when nobody notices breaches.

Questions people ask

How would you define SLIs for a service you have just been handed?

Start from the user journeys, not from the metrics the service emits: for each journey name one availability ratio and one latency ratio — good events over valid events — and say where you would measure them (the load balancer, not the application's self-report). Add a freshness or correctness SLI wherever a fast 200 can carry wrong data. Two or three per journey, then targets from a quarter of measured data; saying that order out loud is most of the answer.

What is the difference between an SLA and an SLO?

Say it in one line: an SLA is the external contract with consequences — credits, penalties — and an SLO is the internal target you manage to. The SLO sits stricter than the SLA so that burn-rate alerts and the budget policy act before money is owed. If they push, ask what the SLA actually measures: monthly uptime with exclusions is a different quantity from a request-based SLI.

Should I have an SLO per endpoint?

Say no, then why: a handful per user journey, aggregating endpoints that share a user meaning. Dozens of SLOs dilute attention until nobody can say whether the service is healthy. Give the caveat unprompted: an endpoint with its own user meaning — checkout against browse — earns its own SLI.

How much budget did that incident cost us?

Error fraction × duration, then divide by the budget minutes: 30% errors for 40 minutes is 12 full-outage-equivalent minutes, or 28% of a 43.2-minute budget. Work it out loud, and end with what it changes — how much risk the next change can take — because the number on its own is not the answer.

A dependency we do not control ate half the budget. Does that count?

Yes, without hedging: users experienced the failure, and the budget measures what they got. The policy response is to spend effort isolating from that dependency — timeouts, fallbacks, caching — which is exactly the reliability work the budget exists to fund. Keep it as its own line on the burn-by-cause dashboard so the argument stays visible.

Where does 14.4 come from?

From choosing to page when 2% of a 30-day budget goes in one hour: 2% of 720 hours is 14.4 hours of budget per hour, so a 14.4× burn. Say the companion pairs in the same breath — 6× over 6 h is 5%, 1× over 3 d is 10% and a ticket — and that thresholds are written as multiplier × (1 − SLO) so the SLO they assume is visible in the rule.

We only have metrics from the application, not the load balancer. Can the app report the SLI?

As a stopgap, yes, and name the cost: it misses everything that fails before the app — connection errors, timeouts, crashed instances — so it overstates availability. Prioritise edge measurement, and until then validate the app's numbers against a synthetic probe.

Further reading

Drills · 9

Answer in your head, or out loud, before you reveal. Mark each one: "Again" brings it back, "Got it" counts on your desk.

1 Pick the strongest answer

The checkout API has an availability SLO of 99.9% over a rolling 30 days. Two weeks into the window a bad config push fails 50% of requests for 20 minutes before it is rolled back. Your product manager turns to you: what is the error budget, and what did that incident just do to it?

  1. The budget is per incident: a 20-minute incident is one budget event, and it resets when the incident is closed. The budget is a fraction of all events over a rolling window; incidents spend it in proportion to failed requests, and nothing resets until the window rolls forward.
  2. The budget is (1 − SLO) × the window: 0.1% of requests, or 43.2 minutes of full outage per 30 days, and every failed request spends it, whether it comes from an incident or from a risky change. Half of requests failing for 20 minutes is 10 minutes of full-outage-equivalent budget gone (at a steady request rate), about 23% of the month, so how much remains, not the calendar, decides how aggressive the next change can be. An error budget is the allowed failure fraction over the window, expressed in requests or in outage-equivalent minutes; partial failures spend it in proportion.
  3. Planned changes are exempt: the budget is for unplanned incidents, so a deploy-caused error burst is not counted against the SLO. Users cannot tell a deploy from an outage; the budget exists precisely to price the risk of change, and deploy-caused bursts are usually its largest consumer.
  4. Only full outages spend budget. At 50% errors the service was still up, so this incident cost nothing. Availability SLIs count failed requests, not wall-clock downtime; 50% errors for 20 minutes costs the same budget as 100% errors for 10.
In short

The budget is 1 minus the SLO over the window, and every failed request spends it: 50% errors for 20 minutes cost 10 minutes of budget.

Why

Error budget = 1 − SLO, applied to the window's events: for 99.9% over 30 days (43,200 minutes) that is 0.1% of requests, or 43.2 minutes of full outage, spent as full-outage minutes, as failed requests, or any mixture. It is spent by whatever makes requests fail (outages, partial degradations, canaries gone wrong, migrations), which is what makes it the shared currency between shipping features and doing reliability work. Convert incidents to full-outage-equivalent minutes (error fraction × duration) to compare them: 0.5 × 20 = 10 minutes, about 23% of the 43.2-minute budget, two weeks in. The policy for what happens when the budget runs low is agreed with product in calm, so the conversation during a burn is about executing it, not negotiating it.

The common mistake

Treating a partial outage as free because 'the service was up', or exempting deploy-caused errors. 50% errors for 20 minutes is 10 minutes of budget, and deploys are usually the budget's largest consumer.

Read the docs

2 Answer out loud

Why is 100% the wrong availability target? Our service measured 99.94% last quarter: what target would you set, and what does the resulting error budget actually buy the organisation? Three to six sentences, with numbers, pitched at a staff engineer.

In short

A strong answer says each extra nine costs about 10 times more, picks 99.9% from the measured 99.94%, and treats the 43-minute budget as money to spend on change.

What a strong answer does
  • target reasoning: Each nine costs ~10x and divides the budget by 10; users behind ~99.9% networks cannot perceive more; a target above demonstrated performance is broken on day one; so choose the loosest target users accept that the system has shown it meets: 99.9%, with 43.2 minutes per 30 days, not 99.99% with 4.3.
  • budget use: Budget is the shared currency between features and reliability, spent by incidents and by risky changes alike, converted to full-outage-equivalent minutes per incident, governed by a policy agreed with product before it is needed (launch pauses, effort redirected to top consumers).
  • communication: Argument in three beats (cost, perception, evidence), the number and its derivation, then what the budget buys; decisive and concrete.
Why

Interviewers listen for the three-part argument (cost, perception, evidence), the derivation of the number from measured performance rather than from ambition, and the budget framed as a decision-making currency with a pre-agreed policy rather than as permitted downtime. Quoting 43.2 minutes and contrasting it with 4.3 is the quantified tell; naming the policy is the staff-level one.

The common mistake

Saying '100% is unrealistic because things break' and stopping. True and worthless: the answer is that each nine costs about 10x, users cannot see past roughly 99.9%, and a target above demonstrated performance is a promise already broken.

Read the docs

3 Design round

Design the SLIs, SLOs, error-budget policy and alerting for a checkout API. Facts: 800 requests/s average, 2,000 at peak; last quarter, measured at the load balancer, 99.94% of requests were non-5xx, 97.5% completed under 500 ms and p99 was 620 ms; product wants to promise 99.99%. Give the SLI definitions, the targets with their derivation, the budget in minutes and in requests, the alert rules with thresholds and windows, what happens when the budget is spent, and how you would verify the alerting before relying on it.

  • SLIs are measured at the load balancer from real requests, not from the application's self-reported health.
  • On-call may be paged only for burns that would exhaust the budget within days, never for ones that take the whole window.
  • Product must agree to the budget policy before it is needed; nothing is renegotiated during an incident.
In short

A strong answer derives 99.9% from the measured 99.94%, states the budget as 43.2 minutes or about 2 million requests, and pages only at 14.4x and 6x burn rates.

A strong answer covers
  • Chooses SLIs per user journey: availability = non-5xx / valid requests (excluding client 4xx, health checks and synthetic probes); latency = requests under 500 ms / valid requests; says why they are measured at the balancer (the closest point to the user that you control).
  • Derives targets from demonstrated performance and user need: 99.9% availability (measured 99.94%; 99.99% would demand detection plus mitigation in 4.3 minutes and roughly 10x cost) and 95% of requests under 500 ms (measured 97.5%), each over a rolling 30 days; explains why not 100%.
  • States the budget both ways: 0.1% of requests ≈ 2.07 million failed requests per 30 days at 800 req/s (0.001 × 800 × 2,592,000 s), or 43.2 minutes of full outage; latency budget 5% of requests.
  • Specifies multi-window, multi-burn-rate alerts with the standard table: page at 14.4x over 1 h confirmed by 5 m (2% of budget), page at 6x over 6 h confirmed by 30 m (5%), ticket at 3x over 1 d confirmed by 2 h (10%) and 1x over 3 d confirmed by 6 h (10%); thresholds written as multiplier × 0.001; the same structure for the latency SLI with its 0.05 budget fraction.
  • Writes the budget policy with product: what pauses when the budget is gone (risky launches), what continues (fixes, rollbacks, reliability work), who arbitrates, and the periodic review of SLO and SLI; dashboards show budget remaining and burn by cause.
  • Verifies before trusting: inject a known burn in staging (e.g. 12% errors) and confirm the page fires in about 7 minutes and clears within the 5 m short window after recovery; confirm a 1x burn opens a ticket and never pages; replay last quarter's incidents through the rules and check detection time against budget spent.
What a strong answer does
  • sli slo derivation: SLIs as good/valid with exclusions named, targets derived from demonstrated performance with the cost-of-nines and perception arguments, budget in requests and minutes, latency as a good-fast ratio at 500 ms.
  • alerting and policy: Full multi-window table with thresholds as multiplier × budget fraction, page/ticket split justified by time-to-exhaustion, written policy with product, dashboards, and a verification plan with expected detection times.
  • communication: Restates the facts, derives each number from the previous one, presents decisions with reasons (including the refusal of 99.99%), ends with verification.
Why

The exercise rewards deriving each number from the previous one: measured performance → target → budget in requests and minutes → burn-rate thresholds as multiplier × budget fraction → page versus ticket by time-to-exhaustion → a policy that says what the budget buys → a test that proves detection time. Candidates who accept 99.99%, who alert on breach instead of burn, or who cannot say what happens when the budget is gone miss what the interviewer is scoring: that an SLO is a decision-making instrument, not a number on a slide.

The common mistake

Alerting on the SLO being breached instead of on burn rate, and accepting the 99.99% ask without first saying what the system has demonstrated and what that budget would demand of detection and mitigation.

Read the docs

4 Quick recall

Quick one: a 99.9% availability SLO over 30 days is how many minutes of full outage?

In short

43.2 minutes: 0.1% of the 43,200 minutes in 30 days.

Accepted

43.2 · 43 · 43.2 minutes

Why

30 days is 43,200 minutes; 0.1% of that is 43.2 minutes. The same budget is 0.1% of requests, so 50% errors for 86 minutes spends it too. Each extra nine divides it by ten: 4.32 minutes at 99.99%.

5 Pick the strongest answer

Our customer-facing API measured 99.94% availability last quarter, and product wants to promise 99.99%. You own the SLO: what number do you set, and what do you say to product?

  1. Set the SLO exactly at last quarter's measured value so the budget is zero and the team is forced to stabilise before shipping anything new. A zero budget means no change is ever permitted and every blip is a breach; the gap between measured and target exists to fund change.
  2. Promise the higher number. A more ambitious SLO drives the team toward higher quality and is better for customers. An SLO above demonstrated performance is missed from day one, the budget is permanently negative, and the policy then forbids every change; ambition belongs in the roadmap, not the target.
  3. Set 100%. Any failure is unacceptable for a customer-facing API, and the target should say so. 100% leaves zero budget for deploys, maintenance or dependency failures, costs without bound, and is invisible to users whose own path to you fails more often than that.
  4. Set the target just below demonstrated performance and just above what users need: 99.9% over 30 days, a 43.2-minute budget. Each extra nine shrinks the budget tenfold (43.2 min → 4.3 min → 26 s) and costs roughly 10x in engineering and redundancy; users behind ~99.9% networks and devices cannot perceive the difference; and a target above what the system has demonstrated is a promise already broken, with no budget left for any change. Targets come from demonstrated performance and user need, with the cost of each nine made explicit; the gap between measured and target is the budget that funds change.
In short

Set 99.9%, just under what the system has measured: each extra nine costs about 10 times more and users cannot see the difference.

Why

Three arguments decide a target. Cost: each additional nine roughly multiplies engineering, redundancy and operational cost by ten while dividing the error budget by ten. Perception: a user reaching you through home Wi-Fi, a mobile carrier and a laptop that sleeps experiences perhaps 99.9% availability of the path itself, so nines beyond that are indistinguishable to them. Evidence: a target the system has not demonstrated is a wish, and the budget it implies is already spent. So pick the loosest target users are happy with that the service has shown it can meet, and treat the gap between measured and target as the budget for change. The interview tell is saying 99.9% and explaining why not 99.99%.

Read the docs

6 Read the output

This is the Table view right now. Which alerts fire, what burn rate is the service running at, and how much of the 30-day budget did the last hour cost?

# Prometheus Table view. Recording rules over the checkout availability SLI
# (errors = 5xx / valid requests). SLO: 99.9% over 30 days -> budget fraction 0.001.

slo:sli_error:ratio_rate5m{service="checkout"}     0.0300
slo:sli_error:ratio_rate30m{service="checkout"}    0.0240
slo:sli_error:ratio_rate1h{service="checkout"}     0.0160
slo:sli_error:ratio_rate6h{service="checkout"}     0.0035
slo:sli_error:ratio_rate3d{service="checkout"}     0.0009

# Alert rules (multi-window, multi-burn-rate):
#   page:   ratio_rate1h > 14.4 * 0.001  and  ratio_rate5m  > 14.4 * 0.001
#   page:   ratio_rate6h >  6   * 0.001  and  ratio_rate30m >  6   * 0.001
#   ticket: ratio_rate3d >  1   * 0.001  and  ratio_rate6h  >  1   * 0.001
  1. Both pages and the ticket fire: every window shows an error ratio above the 0.1% budget, so all three rules are satisfied. Each rule has its own multiplier: the 6 h window must exceed 6x (0.006) and reads 3.5x (0.0035); the 3 d window must exceed 1x and reads 0.9x. Only the fast rule is satisfied.
  2. Only the fast-burn page fires: the 1 h window is 0.016 / 0.001 = 16x the budget rate, above 14.4x, and the 5 m window at 30x confirms the burn is still going. The slow-burn page does not (6 h is 3.5x, below 6x) and the ticket does not (3 d is 0.9x). One hour at 16x spends 16 / 720 ≈ 2.2% of the 30-day budget; sustained, it exhausts the budget in 30 d / 16 ≈ 45 hours. Burn rate is error ratio divided by (1 − SLO); each rule needs both its long and its short window above the same threshold; budget spent = burn rate × window / 30 days.
  3. Nothing fires. A 1.6% error ratio is far below the 14.4% threshold in the rule. 14.4 is a multiplier of the budget rate, not a percentage: the threshold is 14.4 × 0.001 = 1.44% error ratio, and 1.6% exceeds it.
  4. No page is warranted: the 3-day window at 0.0009 shows the service inside its budget overall, so this is at most a ticket. The 3 d average is low because the burn began about an hour ago and three days dilute it 72x. Short windows exist so a fast burn is caught before it becomes a large share of the budget.
In short

Only the fast page fires: the 1-hour window is at 16 times the budget rate, and that hour spent about 2% of the 30-day budget.

Why

Divide each window's error ratio by the budget fraction (1 − SLO = 0.001) to get its burn rate: 30x, 24x, 16x, 3.5x, 0.9x. A multi-window rule fires only when the long window (which gives significance and a low false-positive rate) and the short window (which lets the alert reset within minutes of recovery) both exceed the same threshold, here 14.4x for the 1 h / 5 m pair. Budget consumed is burn rate × window length / 30 days: 16 × 1 h / 720 h ≈ 2.2%, close to the 2% the rule is designed to detect at. The shape of the numbers also tells a story: ratios rising from 3 d to 5 m mean the burn started recently and is accelerating, so the on-call should expect the 6 h page to follow if nothing changes.

Read the docs

7 Scenario: what do you do next?

Day 14 of the 30-day window. The checkout availability SLO is 99.9%; the budget dashboard shows 80% consumed (34.5 of 43.2 minutes). Two incidents this month: a 30-minute burst at 60% errors after a deploy on day 3, and a 45-minute burst at 30% errors from a dependency on day 9. A large feature launch is scheduled for day 16. You own the SLO.

Step 1. What do you do first?

  1. Cancel the day-16 launch immediately and tell product the SLO forbids it. The policy may well pause it, but announcing a cancellation before reading the breakdown skips the step that decides whether the launch is the risk, and you will need the numbers to make the case.
  2. Do nothing: 80% consumed with 16 days left is still within budget. The window is rolling and two incidents spent most of the budget in two weeks; at that rate it is exhausted before the window rolls, and the launch adds risk.
  3. Open the budget burn breakdown before deciding anything: which incidents and endpoints spent it, whether the SLI counted only valid events (health checks, 4xx and bots excluded), and whether the burn is concentrated in one kind of change. The policy applies to what is actually spending the budget. Evidence first: the policy's actions depend on where the budget went, and a mis-measured SLI would make every downstream decision wrong.
  4. Relax the SLO to 99.5% for this quarter so the budget is healthy again. Moving the target during a burn destroys what the SLO is for; targets are renegotiated in calm with evidence, not to avoid a policy consequence.

Step 2. The breakdown: 18 minutes from the day-3 deploy (rollback took 30 minutes because the previous image had been garbage-collected), 13.5 minutes from the day-9 dependency outage, about 3 minutes of baseline errors. The SLI is measured at the load balancer and excludes 4xx. What do you do?

  1. Freeze all deploys, including the rollback-tooling fix, until the window rolls over. A blanket freeze blocks the very changes that reduce burn; the policy pauses risky launches, not fixes and reliability work.
  2. Ask product to grant a one-time exception because the launch is important. Exceptions negotiated under pressure make the policy decorative; if the launch is worth the risk, the honest path is to de-risk it within the policy (dark launch, canary).
  3. Ship the launch: the dependency outage was not our fault, so those 13.5 minutes should not count. Users experienced the failure regardless of whose fault it was; the budget measures what users got, and the dependency's risk is part of the service's risk.
  4. Run the pre-agreed policy: pause risky launches, so the day-16 feature ships dark behind a flag or waits; redirect the next sprint to the largest consumer, deploy safety (previous image pinned, one-command rollback, canary with automatic rollback); keep the dependency incident's action items; and tell product this is the policy they agreed to, with the numbers. The policy is executed, not negotiated; it targets the actual biggest consumer, and the launch is deferred or de-risked rather than banned.

Step 3. The window rolled and the budget is healthy. What systemic fix do you propose so this month does not repeat?

  1. Make the biggest consumer structurally cheaper: canary deploys with automated analysis against the SLI and automatic rollback within minutes, previous image pinned; add the 3x / 1 d ticket rule so slow consumption is visible long before 80%; write the error-budget policy down with product, including the launch-pause rule and the periodic SLO review. Verify by shipping a deliberately bad canary in staging and timing the rollback. Mechanisms with verification: the deploy path caused most of the burn, the ticket alert makes consumption visible early, and the written policy removes the negotiation.
  2. Ask engineers to deploy more carefully and to check the budget dashboard before each deploy. A reminder, not a mechanism; the 30-minute rollback was a tooling gap that carefulness cannot close.
  3. Raise the SLO to 99.99% so the team takes reliability more seriously. A tighter target on the same system means the budget is blown every month; targets follow demonstrated performance, not motivational intent.
  4. Stop counting deploy-caused errors against the budget since they are self-inflicted and short. Deploy errors are the budget's main purpose, the price of change; excluding them removes the signal that the deploy path needs work.
In short

Read the budget breakdown first, then run the agreed policy: pause the risky launch and fix the slow rollback that spent most of the budget.

Why

The error budget is only useful if something happens when it runs low, and that something is decided in advance. The interview shape: read the breakdown before acting (and check the SLI is honest), then execute the agreed policy against the actual consumers rather than banning change or moving the target, then fix the mechanism that spent the most. The arithmetic matters: 60% × 30 min = 18 min and 30% × 45 min = 13.5 min are full-outage-equivalent minutes, and a 30-minute rollback that could have been 3 is the single largest lever.

Read the docs

8 Pick the strongest answer

Your RPC fleet (12 nodes behind an L7 balancer) has SLOs on availability (non-5xx, 99.95%) and latency (p99 under 300 ms); both are green. Customers complain that balances and nonces they read are stale: after disk stalls, individual nodes fall minutes behind the chain head and keep answering 200 in 40 ms. Which change to the SLIs closes the blind spot?

  1. Each node's exporter already reports synced=1; make that the SLI and alert when any node reports 0. A node's self-assessment is neither a user event nor a ratio of good to valid requests; the lagging nodes reported synced while behind. The SLI must be measured on what was actually served.
  2. Tighten the latency SLO to p99 under 100 ms: a node that answers faster is serving fresher data. The lagging nodes answer in 40 ms because they are serving old data from a warm cache; speed and freshness are independent, and a tighter latency target would page for the wrong thing.
  3. Graph the average head lag across the fleet and alert when it exceeds 20 slots. One node minutes behind among 12 barely moves the mean while 1 in 12 requests is stale; SLIs are per-request ratios, and the tail is what users hit.
  4. Add a freshness SLI measured per request at the balancer: a request is good when the answering node's head is within 20 slots of the fleet's maximum head at that moment (the node stamps its head in a response header, or the balancer tracks it), with its own SLO and budget. Availability and latency are necessary, not sufficient: an SLI measures what the user needs, as close to the user as possible, and the user needs fresh data. Use the same signal to eject lagging nodes from rotation. A quality or freshness SLI is a ratio of good to valid requests like any other; it is defined by the user's need and measured where the user is served, not inferred from node health.
In short

Add a freshness SLI measured per request at the balancer: a fast 200 with stale data is still a failure for the user.

Why

Availability and latency SLIs answer "did the request succeed" and "how fast"; they cannot see a fast 200 carrying stale data. Systems that serve replicated or derived data need a freshness (or correctness) SLI: define good as "the data served was within N of the freshest available", measure it per request at the serving edge, give it an SLO and let it burn budget like the others. The general rule is the Workbook's: an SLI measures what the user needs, as close to the user as you can. Because it is per request, it also catches the tail case a fleet-wide mean hides, and the same per-node freshness signal is exactly what the balancer's health check should use to pull a lagging node. The web3 setting is incidental: a read replica behind a database proxy has the identical blind spot.

Read the docs

9 Find what's broken

promtool check rules passes, but on-call has three complaints: a page for a 10-minute blip at 1.5% errors that spent 0.35% of the budget; a slow-burn page that kept firing for five hours after a real burn had ended; and a 04:00 page every few weeks for a burn that would take a month to exhaust the budget. Which lines are wrong, and how do you fix them?

groups:
  - name: checkout-slo
    rules:
      # SLO: 99.9% availability over 30 days -> budget fraction 0.001
      - record: slo:sli_error:ratio_rate5m
        expr: sum(rate(http_requests_total{job="checkout",code=~"5.."}[5m])) / sum(rate(http_requests_total{job="checkout"}[5m]))
      - record: slo:sli_error:ratio_rate30m
        expr: sum(rate(http_requests_total{job="checkout",code=~"5.."}[30m])) / sum(rate(http_requests_total{job="checkout"}[30m]))
      - record: slo:sli_error:ratio_rate1h
        expr: sum(rate(http_requests_total{job="checkout",code=~"5.."}[1h])) / sum(rate(http_requests_total{job="checkout"}[1h]))
      - record: slo:sli_error:ratio_rate6h
        expr: sum(rate(http_requests_total{job="checkout",code=~"5.."}[6h])) / sum(rate(http_requests_total{job="checkout"}[6h]))
      - record: slo:sli_error:ratio_rate3d
        expr: sum(rate(http_requests_total{job="checkout",code=~"5.."}[3d])) / sum(rate(http_requests_total{job="checkout"}[3d]))

      - alert: CheckoutFastBurn
        expr: slo:sli_error:ratio_rate1h > (14.4 * 0.0001) and slo:sli_error:ratio_rate5m > (14.4 * 0.0001)
        for: 2m
        labels:
          severity: page
        annotations:
          summary: "Checkout burning error budget at >14.4x (2% of the 30d budget per hour)"
      - alert: CheckoutSlowBurn
        expr: slo:sli_error:ratio_rate6h > (6 * 0.001)
        for: 2m
        labels:
          severity: page
      - alert: CheckoutBudgetBurn3d
        expr: slo:sli_error:ratio_rate3d > (1 * 0.001) and slo:sli_error:ratio_rate6h > (1 * 0.001)
        for: 1h
        labels:
          severity: page
In short

Three fixes: the fast-burn threshold must use 0.001 not 0.0001, the slow-burn rule needs its 30-minute short window, and the 3-day rule should be a ticket, not a page.

What's broken
  • Line 17: The threshold 14.4 × 0.0001 is computed for a 99.99% SLO (budget fraction 0.0001). For the stated 99.9% SLO the fast-burn threshold is 14.4 × 0.001 = 0.0144, so this rule pages at a 1.44x burn, ten times too sensitive.
  • Line 24: The slow-burn rule has only the long window. Without the 30 m short window the 6 h average stays above 0.006 for hours after the burn has stopped, so the alert cannot reset and keeps paging with nothing left to do.
  • Line 32: A 1x burn over 3 days spends the budget exactly at the rate the SLO permits and would take the full window to exhaust it; that is a ticket for business hours, not a page at 04:00.
Why

Three separate mechanisms. A burn-rate threshold is multiplier × (1 − SLO), so the SLO it assumes must match the service's; line 17 encodes 99.99% for a 99.9% service and pages ten times too often, which is why the comment on line 4 stating the budget fraction is not a fault but the reference the rule should have used. The short window on a multi-window rule exists for reset behaviour: once the burn stops, the 30 m average falls below threshold within half an hour and the and clause clears the alert, while a 6 h average alone lingers. And severity follows urgency: 1x over 3 d spends 10% of the budget and would take 30 days to exhaust it, so it is a ticket; only the 14.4x and 6x rules page. The for: 2m on line 18 is fine (it rides out a single noisy evaluation and delays the page by two minutes on a rule designed around an hour), and line 29 correctly pairs the 3 d long window with its 6 h short window.

Read the docs

Next lesson Structured logging, sampling, and distributed tracing
Drill · SLIs, SLOs, error budgets, and burn-rate alerting
0:00

Loading…