An SLO is an internal guideline for a team: how many requests should succeed, how quickly pages should respond and how fresh the data may remain. The target is measured over a window — for example, four weeks — and monitored so the metric does not drop below it. Unlike an SLA, nobody is paid compensation for missing an SLO.
How SLIs, SLOs and the error budget fit together
An SLO is always built on top of an SLI — a specific measurement taken from monitoring. When the desired measurement is hard to capture, a substitute is used: server-side latency instead of client-side, for example. The target sets what share of measurements counts as successful, and everything left down to the target is the error budget: headroom for failures, updates and experiments.
| Element | What it is | Example |
|---|---|---|
| SLI | a quality measurement: share of successful requests, latency, data freshness | 99.95% of requests faster than 300 ms |
| SLO | target value of an SLI over a measurement window | 99.9% of successful requests over 30 days |
| Error budget | the shortfall against the target that is allowed | 0.1% over a 30-day window — about 43 minutes of downtime |
How a target is chosen
A target is not picked “just in case”: each additional nine costs more, while the benefit to users keeps shrinking. A target of 100% is unattainable in practice: any update or outage would break it, leaving the team no time for anything but firefighting. The internal target is often set stricter than the one promised to customers, so the team can spot and fix a problem before it becomes visible outside. It is realistic to start from the service’s current metric — a normal starting point — and refine the target with experience.
- pick an SLI that genuinely reflects the user experience — most often the share of successful requests
- set a target with headroom against the SLA: if a customer is promised 99.5%, the internal target is 99.9%
- choose a measurement window — usually a rolling one; a whole number of weeks works well, four for example
- calculate the error budget: the shortfall that can be spent on risks and updates
- agree what to do once the budget is exhausted — for example, freeze changes and work on reliability
Origin of the term
The concept was established by Google’s book “Site Reliability Engineering” (2016): in it, an SLO is a target value or range of values for the service level that an SLI measures, while the error budget is the shared metric through which development and operations agree on acceptable risk.
Sources
the term is written from these pagesVerified 9 Nov