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 rate | Budget consumed | Detection windows | Action |
|---|---|---|---|
| 14.4 | ~2% in <1 hour | 5 min + 1 hour | Page |
| 6 | ~5% in 6 hours | 30 min + 6 hours | Page |
| 1 | ~10% in 3 days | 6 hours + 3 days | Ticket |
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/totalevent ratios via recording rules —job_route:http_errors:ratio5mfrom 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?
Keep reading
Related articles from the SudoSecurity blog.
Your Container Is Running SerialGC and Nobody Told You
You tuned G1 flags for a week. Your pod has one CPU, which means the JVM quietly picked a single-threaded collector at startup and ignored every flag you set. Here is the OpenJDK source that made that decision.
PostgreSQL 19 Is Out. REPACK Kept My Writes Running. The Docker Upgrade Will Stop Your App.
PostgreSQL 19 shipped on November 19 with REPACK (CONCURRENTLY), which removes table bloat without blocking writes. I measured it against VACUUM FULL, ran the upgrade from 18, and checked what breaks for self-hosters: Docker tags that refuse to start, a config setting that stops the server, and...
AWS Emulator Puts AWS on Your Laptop. Keep Your IAM Tests Off It.
AWS released AWS Emulator on November 11, a free local server that answers AWS API calls on 127.0.0.1 with per-run keys and fresh certificates.
Your npm Install Just Ran Someone Else's Code: Why Dependency Security Has to Start Before CI
A pull request checkout, a poisoned GitHub Actions cache, and an OIDC token pulled straight out of runner memory. That's how 84 malicious versions of TanStack's packages hit npm in six minutes.