SLOs and error budgets: how much failure is acceptable
Google's SRE workbook calls 100% the wrong reliability target, because a service held there can never be updated or improved. An SLO sets the target, and the gap between it and 100% is the error budget.

SLI, SLO and SLA
Google's SRE book defines the three terms:
- An SLI, a service level indicator, is a defined, quantitative measure of some aspect of the service. The SRE workbook recommends a ratio: good events divided by all events.
- An SLO, a service level objective, sets the target for a service level, as one value or a range of values, and an SLI measures that level.
- An SLA, a service level agreement, is a contract with users. It contains SLOs and states what follows from meeting them or missing them.
The book offers a test. Ask what happens if the SLOs are not met. If there is no explicit consequence, you are looking at an SLO.
Indicators from what users do
The workbook starts from the users: decide who they are and consider their common tasks and critical activities. For a request-driven service it suggests three types of SLI:
- Availability: the share of requests that got a successful response.
- Latency: the share of requests served faster than a chosen threshold.
- Quality: the share of responses served in an undegraded state.
It recommends a small number of SLI types, five or fewer.
Error budget arithmetic
The workbook defines the error budget as 100% minus the SLO. Its example: with a 99.9% success-ratio SLO, a service that receives 3 million requests over four weeks has a budget of 3,000 errors. One outage responsible for 1,500 errors costs 50% of that budget.
The same arithmetic gives the budget in time: the minutes in the window multiplied by 1 minus the SLO. 30 days are 43,200 minutes, so when every request fails the budget lasts:
- 99%: 432 minutes, or 7.2 hours
- 99.9%: 43.2 minutes
- 99.95%: 21.6 minutes
- 99.99%: 4.32 minutes
The workbook recommends a window of whole weeks, so that each contains the same number of weekends, and names four weeks as a good general-purpose interval. Over 28 days the 99.9% figure is 40.32 minutes.
Burn-rate alerts
The workbook starts with an alert on the error rate itself and finds its precision low. With a 99.9% SLO, a 0.1% error rate for 10 minutes fires that alert while consuming only 0.02% of the monthly budget.
Burn rate is the speed at which the service uses up its error budget, measured relative to the SLO. At burn rate 1 the budget is exactly used up at the end of the window. The workbook's table for a 99.9% SLO over 30 days: burn rate 10 is a 1% error rate and exhausts the budget in 3 days, and burn rate 1,000 is 100% and 43 minutes.
The workbook recommends these parameters as a starting point for a 99.9% SLO:
- Page: burn rate 14.4 over 1 hour and over 5 minutes, at 2% of the budget consumed.
- Page: burn rate 6 over 6 hours and over 30 minutes, at 5%.
- Ticket: burn rate 1 over 3 days and over 6 hours, at 10%.
Both windows must be over the threshold. The short window checks that the budget is still being consumed, and the workbook's guideline is to make it one twelfth of the long one. With it, the one-hour alert stops firing five minutes after the errors stop. This is the workbook's paging expression:
(
job:slo_errors_per_request:ratio_rate1h{job="myjob"} > (14.4*0.001)
and
job:slo_errors_per_request:ratio_rate5m{job="myjob"} > (14.4*0.001)
)
or
(
job:slo_errors_per_request:ratio_rate6h{job="myjob"} > (6*0.001)
and
job:slo_errors_per_request:ratio_rate30m{job="myjob"} > (6*0.001)
)0.001 is the 0.1% error rate that a 99.9% SLO allows. Each series is a recording rule: the ratio of errors to requests over that window. myjob and the series names are the workbook's. It warns that at 10 requests per hour, one failed request is a 1,000x burn rate and pages immediately.
An error budget policy
The workbook says that to use an error budget you need a written policy for what to do when the service runs out of it, approved by the product manager, the development team and the SREs. Its example policy contains:
- While the service performs at or above its SLO, releases proceed.
- Once the service has spent more than its error budget for the preceding four-week window, changes and releases stop until it is back within its SLO. P0 issues and security fixes are the exceptions.
- If a single incident consumes more than 20% of the error budget over four weeks, the team conducts a postmortem with at least one P0 action item.
- A disagreement is escalated to the CTO.
The example states that it is not intended as a punishment for missing SLOs.
One service first
Steps from the workbook:
- Choose one application. If the product has many, add the others later.
- Pick SLIs that need a minimum of engineering work. If web server logs are already available, use the logs.
- Round the measured SLIs down to manageable numbers to get the starting SLOs. The workbook says the first attempt does not have to be correct.
- Get all stakeholders to agree, and document the SLO and the error budget policy.
- Set up monitoring and alerting to defend the SLO.
Sources
Want a second pair of eyes on yours? We do this work for a living.
More guides

The four golden signals: what to measure first
Observability · 4 min read
Latency, traffic, errors and saturation, with a PromQL query for each and a first dashboard.

Blameless postmortems: what to write after an incident
Cloud operations · 4 min read
The sections, the wording, the review meeting and the follow-up for a postmortem people learn from.

Structured logging: logs a machine can query
Observability · 4 min read
The fields a log line needs, what to leave out, and how Loki queries the result.