Skip to content

Lesson 10 of 13 · 15m

Error Budget Is Arithmetic, Not a Mood

SLI event ratios, burn rate as the only alertable number, and the multiwindow alerts that page when the math says so.

An SLO is a fraction with a deadline; every derived quantity is multiplication. The SLI is good events / total events over a rolling window — say, the share of requests that both succeeded (no 5xx) and finished under 300 ms, measured over 30 days. The SLO is the target for that SLI: 99.9%. The error budget is 1 − SLO: at 99.9%, you may fail 0.1% of requests, about 43 minutes of full outage per month, or a sustained 0.1% error drip. Burn rate is the single number that tells you how fast you're spending it: observed error rate / allowed error rate. Burn rate 1 means you consume the whole budget exactly at the window's end; burn rate 14.4 means you're burning it 14.4 times too fast.

Why percentile alerts get the wrong people paged

The mental model being retired here is "alert when p99 latency exceeds X ms" or "page on any 5xx." A p99 alert fires on slowness that may cost zero budget — slow successes — and a raw-error alert pages for a 0.05% error rate that your 99.9% SLO has budgeted half of. Both wake a human for arithmetic that didn't justify it. The SRE Workbook's "Alerting on SLOs" chapter (2018) replaced those with multiwindow, multi-burn-rate alerts, and the numbers in its table are the canonical ones:

Burn rateBudget consumedDetection windowsAction
14.4~2% in <1 hour5 min + 1 hourPage
6~5% in 6 hours30 min + 6 hoursPage
1~10% in 3 days6 hours + 3 daysTicket

For a 99.9% SLO, allowed error rate is 0.001, so burn 14.4 is a sustained 1.44% error rate — a pageable event in anyone's calendar. Each alert pairs a short window with a long one: the short window detects the burn, the long window confirms it's still burning rather than a thirty-second blip. Burn-1 alerts on a three-day long window catch the slow leaks that never spike — a retry loop quietly eating your budget for a week.

SLI selection is the part people get creative with

The SLI counts events, not wall-clock pain. "Fraction of requests under 300 ms with non-5xx status" is a request-based SLI and works until traffic is heavy-tailed — then your three biggest customers dominate the ratio and a thousand free-tier failures disappear under their success volume. For batch and evented systems, the SLI moves to the job: "fraction of nightly ETL runs completing on schedule." Pick the event whose failure actually costs your users something, then count it.

The budget is a release valve, not a report card

The reason this math matters to engineering is the consequence table everyone skips: while budget remains, ship; when it's exhausted, freeze risky deploys and spend the week on reliability work. The SLO is the negotiated contract that makes "is this outage a fire?" an answered question instead of an argument. OpenSLO codified the document format; Datadog, Nobl9, and Grafana's SLO tooling all implement multiwindow burn-rate alerts because the workbook's arithmetic is right.

Practice

  • Define SLIs as good/total event ratios via recording rules — job_route:http_errors:ratio5m from the last lesson is the input.
  • Page at burn 14.4 and 6, ticket at burn 1, always with paired short/long windows.
  • Write down what budget exhaustion stops before you need the conversation at 03:00.
  • Revisit the SLI when traffic shape changes; ratios are only as fair as their denominators.

Alert on the budget consumption, not on the symptom. The math already knows what matters.

Was this lesson helpful?

Sign in to rate

Keep reading

Related articles from the SudoSecurity blog.