SLOs & Error Budgets
Turn "be reliable" into a number you can manage against
Category: Monitoring & Observability
How this page is organized: why targets matter, the core learning modules, a worked production example, then interview prep.
Before you start: you should already be comfortable with what a metric and an alert are (see the Prometheus or Grafana tracks if not). No statistics background is required — every formula here is addition, subtraction, and division.
Why SLOs and Error Budgets?
"Make the system reliable" isn't an engineering target — it's a feeling. Two different engineers given that instruction will disagree about what "done" looks like, and neither can prove the other wrong. An SLO (Service Level Objective) replaces the feeling with a number: "99.9% of checkout requests succeed, measured over a rolling 30 days." Now everyone — engineering, product, support — is arguing about the same thing, and that number can be tracked, missed, and defended in a postmortem.
The error budget is what makes the number useful day to day, not just at review time. If the target is 99.9% success, the budget is the other 0.1% — the amount of failure you're explicitly allowed to spend before you've broken your promise. That reframes reliability work from "zero errors, always" (impossible, and expensive to chase) into "spend the budget deliberately" — on a risky migration, on a faster release cadence, on an experiment — rather than discovering by accident, mid-incident, that you were already out of room.
Analogy — An error budget works like a calorie budget, not a ban. Nobody on a diet aims to eat zero calories; they set a daily budget and spend it on the things that matter to them. A 0.1% error budget over 30 days is the same idea applied to a service: you're not trying to prevent every single failed request (unrealistic, and a bad use of engineering time near the margin), you're tracking how much of your allowed "spend" is left, and deciding deliberately where to spend it — ship the risky feature now while there's budget left, or hold it if last week's outage already used most of this month's allowance.
What an SLO Actually Measures
Three terms get used loosely outside SRE teams, but they mean distinct things:
The SLO should always be stricter than the SLA. If your SLA promises 99.9% to customers, setting your internal SLO at exactly 99.9% leaves zero room for normal operational noise — any bad week breaches a contract, not just an internal target. A common pattern sets the SLO a notch tighter (99.95%) so the team gets an early internal warning well before a customer-facing promise is actually at risk.
Learning Modules
Module 01 — Choosing SLIs and Setting Targets
Picking the right signal before picking a number
Topics covered:
The most common mistake is picking an SLI that's easy to measure rather than one that reflects what users actually experience. Server-side HTTP 200 rates are easy to collect, but a page that returns 200 with a broken checkout button looks perfectly healthy on that dashboard. A better SLI is measured as close to the user's experience as the system allows — client-side success/failure, or a synthetic check that exercises the real user flow, not just "did the server respond."
Module 02 — The Error Budget and Burn Rate
Turning the SLO into a number you watch day to day
Topics covered:
If the SLO is 99.9% over 30 days, the error budget is 0.1% of total requests over that window. At roughly 2.6 million requests a month, that's about 2,592 failed requests allowed — spend them evenly and you're fine; spend half of them in one bad afternoon and your burn rate is the real signal, not the monthly total in isolation.
Module 03 — Multi-Window, Multi-Burn-Rate Alerting
Why a single "error rate > X%" alert is the wrong design
Topics covered:
A short 5-minute window catches a fast-burning incident quickly but pages on noise. A long 6-hour window is reliable but slow to notice a real outage. Real burn-rate alerting pairs both: page immediately only when both windows agree something is burning budget faster than the SLO allows, which cuts false pages without losing fast detection of a genuine incident.
Production Example
Interview Prep
Structure each answer below as Problem, then Solution, then Result — keep it to roughly a minute.
A Few Questions to Expect
Q1. What's the most common mistake teams make when picking an SLI?
A: Problem: teams tend to reach for whatever's easiest to pull off an access log, not what the user actually notices when things go wrong. Solution: a server-side 200-status rate is trivial to collect but blind to a page that loads fine and then fails on a broken button — the right SLI sits as close to the real user flow as the system can measure, even when that takes more instrumentation work. Result: picking the harder-to-collect but honest signal avoids a dashboard that looks green while real users are stuck.
Q2. Why bother with a latency SLO on top of an availability SLO?
A: Problem: a request that eventually returns 200 after eight seconds technically "succeeded," but nobody waiting on it experienced it that way. Solution: pairing a percentile latency target (p95 under some threshold) alongside the availability target, and often counting a too-slow response as a failure for availability purposes too, closes that gap. Result: the combined pair catches a class of user-visible breakage that a pure success/failure count would silently miss entirely.
Q3. Why pair a short alerting window with a long one instead of using just one?
A: Problem: a single threshold forces an impossible trade-off between catching real incidents fast and paging the on-call engineer over routine noise. Solution: requiring a short window and a long window to both cross the burn-rate threshold before paging keeps the fast detection while filtering out anything that resolves on its own before the longer window confirms it. Result: on-call load drops without losing the speed of catching a genuine, sustained incident.
See the Interview Q&A tab for more scenarios, and Cheatsheets for the formulas in one place.

