System Design · Concept Library · Free article
SLOs, SLIs & Error Budgets
How teams define reliability targets, measure them, and use error budgets to guide operational decisions.
An SLI measures service behaviour, such as the share of successful requests. An SLO sets a target for that measurement over a window, such as 99.9% over 28 days. An SLA is a customer agreement with consequences for missing its commitment. The gap between perfect service and the SLO is the error budget.
Why "be reliable" isn't good enough
"Make it reliable" does not specify a target, time window, or affected user journey. Without those details, teams cannot tell whether the service met its goal.
An SLO states the intended service level over a defined window. That target makes reliability measurable and gives incident and release decisions a shared reference point.
SLI vs SLO vs SLA
The three terms describe different layers: an indicator is a measurement, an objective is a target for that measurement, and an agreement is a customer-facing commitment that may include consequences.
| Term | What it is | Example | Audience |
|---|---|---|---|
| SLI: Service Level Indicator | A number chosen as a proxy for service behaviour users experience | % of requests served in under 300 ms | Engineers |
| SLO: Service Level Objective | The target for an SLI over a time window | 99.9% of requests succeed over 28 days | Engineers & product |
| SLA: Service Level Agreement | A customer agreement that defines a service commitment and may attach remedies if it is missed | "99.5% uptime, with service credits if the commitment is missed" | Customers & lawyers |
What makes a good SLI
A useful SLI measures an outcome users experience. Many SLIs use good events ÷ valid events, expressed as a percentage. Choose a small set tied to the service journeys that matter.
The usual SLI families
- Availability: fraction of valid events your service defines as good. The definition is workload-specific; it is not always simply “not 5xx.”
- Latency: either the fraction of valid requests below a threshold, or a windowed percentile target such as p99 ≤ 300 ms. These formulations aggregate differently, so state which one you use. See percentiles.
- Correctness / quality: fraction of responses that were right, not just 200 OK.
- Freshness: fraction of data served that's recent enough (for feeds, caches, pipelines).
- Coverage / durability: fraction of records processed or safely stored.
The error budget
A 99.9% success SLO allows 0.1% of valid events to fall outside the target during the window. That allowance is the error budget.
An error-budget policy defines how the team responds as the budget is consumed. It can permit normal release risk while the budget is healthy and shift attention to reliability when the budget runs low.
For a time-based availability SLI, the allowed fraction can be expressed as downtime. Event-based SLIs instead count bad events. Adjust the target to compare a time-based availability budget:
The interactive version of this example is available when JavaScript loads.
| SLO | Allowed failure | Downtime / month | Downtime / year |
|---|---|---|---|
| 99% (two nines) | 1% | ~7.2 hours | ~3.65 days |
| 99.9% (three nines) | 0.1% | ~43 minutes | ~8.8 hours |
| 99.99% (four nines) | 0.01% | ~4.3 minutes | ~53 minutes |
| 99.999% (five nines) | 0.001% | ~26 seconds | ~5.3 minutes |
Burn rate: alert on the budget, not the blip
Alerting on every error creates noise. SLO-based alerting instead measures how quickly the service is consuming its error budget. That ratio is the burn rate.
A burn rate of 1 would use the budget evenly across the full window. A sustained 14.4× burn would exhaust a 30-day budget in about 2.1 days, so a multi-window policy treats it as urgent.
| Burn rate | Budget gone in… | Response |
|---|---|---|
| ~14× (fast) | ~2 days | Page immediately: this is an incident |
| ~6× (medium) | ~5 days | Page during working hours |
| ~1× (slow) | the full window | Open a ticket: fix it this sprint |
How to set an SLO
A practical sequence
- Start from reality, not ambition. Measure what your service already does today. If you're at 99.5%, do not promise 99.99%: you'll live in permanent violation and the budget becomes meaningless.
- Anchor the target to user experience and business risk. Do not add nines unless the measured benefit justifies the cost.
- When an SLA applies, teams commonly set a stricter internal SLO to create a safety margin. The right relationship depends on how the agreement measures the service commitment.
- Pick a window. A rolling 28-day window is common: long enough to absorb a bad day, short enough to stay honest.
- Tighten deliberately. Ship, measure user impact, and raise the bar only when the benefit justifies the engineering and operational cost.
Consistent over-delivery changes expectations
If a service consistently performs far above its SLO, consumers may begin to depend on that observed behaviour instead of the documented target. They can then fail when the service uses its error budget even though the SLO is still met.
Common misconceptions
What to remember
Sources and further reading
By GOAT Engineer. Back to Concept Library. Privacy Policy · Contact.