Lesson 5 of 9 · 27m
SLIs, SLOs, and Error Budgets That Mean Something
Measure service behavior from the user's perspective, choose objectives that reflect pain, and use error budgets to make reliability and velocity tradeoffs explicit.
A service level objective is not a management poster. It is a decision-making tool. Done well, it tells you when to prioritize reliability work and when a little risk is acceptable. Done badly, it becomes a vanity number: four nines in a slide deck while users reload the page and quietly leave.
Start with the user journey
Define a small set of journeys that matter:
can a user sign in?
can a customer complete checkout?
can a collaborator open a document?
does a webhook deliver before the business deadline?For each journey, choose a service level indicator — the measurement. Availability is often valid events divided by total events:
sum(rate(http_requests_total{job="checkout",status!~"5.."}[5m]))
/
sum(rate(http_requests_total{job="checkout"}[5m]))For latency, define what counts as fast enough rather than averaging pain away. A common SLI is the proportion of requests served under a threshold:
good events: checkout completes successfully in under 800 ms
total events: all checkout attemptsThis is usually more honest than p95 alone because it connects directly to user experience.
Objectives are commitments, not aspirations
An SLO might be:
99.9% of checkout attempts succeed over rolling 30 days
99% of document opens complete in under 1.5 seconds over rolling 30 days
95% of webhook deliveries complete within 60 seconds over rolling 7 daysThe window matters. A five-minute outage looks different in a one-hour window than a thirty-day window. Long windows smooth noise and support error-budget decisions; short windows detect acute pain. Use both, but do not confuse them.
Error budgets make tradeoffs explicit
At 99.9% over thirty days, the budget is roughly 43 minutes of full unavailability equivalent. If half the budget is gone on day three, the organization should slow risky launches and invest in reliability. If almost no budget is consumed, perhaps the team can ship faster or avoid spending money on unnecessary redundancy.
availability target: 99.9% / 30 days
allowed failure: 0.1% of requests
budget consumed: observed bad requests / allowed bad requestsBudget policy should be written before the incident: what freezes, who approves exceptions, and when normal velocity resumes.
Measure close to the user
Server-side success can lie. A 200 response that renders a broken client, empty data, or stale content is not success. Synthetic checks, client telemetry, and business reconciliation provide additional views. For asynchronous work, measure end-to-end completion age rather than just queue acceptance.
Field notes
- Do not average away partial outages by measuring across all tenants or regions when pain is concentrated.
- Exclude known bot noise only when it genuinely does not reflect user experience; convenient exclusions corrupt trust.
- A perfect 100% target is a bug magnet. It removes room for maintenance, experimentation, and reality.
- SLOs need owners and review dates. Otherwise they become decorative PromQL.
- Alerting on burn rate is usually better than alerting when the monthly objective is already lost.
Was this lesson helpful?