SLO and error budget planning gives engineering teams a shared way to balance reliability with feature delivery. This guide explains how to choose useful service-level indicators, set realistic objectives, calculate an error budget, create a policy, and use burn-rate signals to make consistent delivery decisions.
Overview
A service-level objective (SLO) is a target for a measurable aspect of service reliability over a defined period. For example, a team might target a specific percentage of successful requests or a response-time threshold during a 30-day window. The SLO is not the same as a contractual service-level agreement (SLA), which may include customer commitments or remedies. It is also different from a service-level indicator (SLI): the SLI is the measurement, while the SLO is the target applied to that measurement.
| Term | Meaning | Example |
|---|---|---|
| SLI | The metric used to measure a user-relevant outcome | Successful checkout requests divided by total checkout requests |
| SLO | The reliability target for that measurement | 99.9% successful checkout requests over 30 days |
| Error budget | The amount of unreliability permitted by the SLO | 0.1% of eligible requests may fail in the same window |
| SLA | An external commitment with defined consequences | A customer contract with service credits |
The collaboration value is as important as the calculation. Product, development, operations, support, and security teams can use the same language when deciding whether to ship a change, pause risky work, or invest in reliability. An error budget is not a punishment for developers. It is a planning tool that makes reliability trade-offs visible.
How to estimate
Start with the user journey rather than the infrastructure component. Ask what failure would prevent a user from completing an important task: logging in, placing an order, retrieving data, or receiving a notification. Then define an SLI that represents that outcome and can be calculated consistently from trusted telemetry.
- Choose the service and journey. Name the service, user action, and owner. Avoid starting with every available metric.
- Define eligibility. Specify which requests, events, regions, tenants, or time periods are included. Exclusions should be explicit and reviewable.
- Select the SLI. Common patterns include availability, latency, freshness, correctness, and successful task completion.
- Set the measurement window. A rolling window helps teams see current reliability, while a calendar window can align with planning or reporting.
- Choose the SLO target. Use historical performance, user expectations, business impact, and the cost of improving reliability. Do not choose a target solely because it sounds precise.
- Calculate the budget. For an availability-style objective, the error budget percentage is
100% - SLO target. Multiply that percentage by the eligible event count or time in the window. - Define decisions. Agree in advance what happens when the budget is healthy, partially spent, nearly exhausted, or exhausted.
For a 99.9% SLO measured over 30 days, the permitted unreliability is 0.1% of the eligible measurement. If the SLI is request-based, calculate the budget from eligible requests. If it is time-based, calculate it from the duration of the window. Keep the denominator visible; a percentage without its eligibility rules can create false confidence.
Target-setting worksheet
- Service and user journey: ____________________
- Service owner and supporting teams: ____________________
- SLI definition and data source: ____________________
- Eligibility rules and exclusions: ____________________
- Measurement window: ____________________
- Proposed SLO: ____________________
- Error budget calculation: ____________________
- Known blind spots or data-quality risks: ____________________
- Review date and decision owner: ____________________
Inputs and assumptions
SLO planning depends on inputs that teams can explain and reproduce. Record the source of each input in the service documentation or an internal platform catalog. Useful inputs include request counts, latency distributions, deployment history, incident records, support signals, dependency behavior, and the user impact of different failure modes.
Latency objectives need special care. Averages can hide a poor experience for a smaller group of users, so teams commonly evaluate a percentile or another distribution-aware measure. Define whether the objective applies to all traffic or to a meaningful class of requests. For correctness and freshness objectives, document how a bad result or stale record is identified and how delayed telemetry is handled.
Do not silently remove difficult data from the SLI. Maintenance windows, synthetic checks, retries, cached responses, and dependency failures may need special treatment, but each rule changes the meaning of the objective. Discuss exclusions with the teams that depend on the service, write them down, and test the query against known incidents.
Error budget policy template
Scope: This policy applies to [service] and the [user journey] SLO over a [window] measurement period.
Healthy budget: Normal feature delivery may proceed when the budget is available and required review, testing, and rollback controls are in place.
Fast burn: When an alert indicates rapid budget consumption, the on-call team investigates the active issue first. A release may be paused if it could worsen the impact.
Low budget: When the remaining budget falls below [team threshold], the service owner and product owner review planned changes. Reliability work is prioritized according to customer impact and risk.
Exhausted budget: The team agrees on a temporary change policy, such as requiring an explicit reliability review for high-risk releases, until the SLO recovers or the policy is formally revised.
Exceptions: Emergency security fixes, data-loss prevention, and other urgent work may proceed with an incident or change record explaining the decision.
The thresholds should be agreed before an incident, not improvised during one. They should also distinguish between a budget consumed by one severe event and a slow trend caused by repeated small regressions.
Worked examples
Availability budget
A team selects a 99.9% successful-request SLO for an API over a rolling 30-day window. The error budget is 0.1%. If the window contains 2,000,000 eligible requests, the permitted failure count is 2,000 requests. If measured failures reach 1,600, the team has used 80% of the request-based budget. That figure does not decide the response by itself; the team should check whether failures are concentrated in one customer journey, region, release, or dependency.
Latency budget
A search service defines an SLI based on the proportion of eligible searches completing below its chosen latency threshold. The team sets an SLO for that proportion rather than treating every slow request as an outage. During review, it compares the SLO result with support reports, deployment events, and traffic changes. This helps the group distinguish a measurement problem from a user-visible performance regression.
Burn-rate alerts
Burn rate describes how quickly the team is consuming its error budget compared with the rate that would exhaust the budget at the end of the measurement window. A burn rate of 1 means consumption is tracking the full budget across the window. Higher values indicate faster risk. A practical alert design uses more than one window: a short window can identify an acute incident, while a longer window can identify a persistent regression. For example, a team might configure a high-severity alert for rapid consumption over a short interval and a lower-severity warning for sustained consumption over a longer interval. The exact windows and thresholds should match the team’s response capacity and be tested against historical incidents.
Alert messages should include the service, SLO, window, current budget remaining, suspected dimension, dashboard link, and immediate owner. An alert that only says “SLO violation” creates work without enough context for coordinated response.
When to recalculate
Review SLOs on a regular schedule, such as a monthly reliability review and a deeper quarterly planning session. Recalculate sooner when traffic patterns, service architecture, user journeys, dependencies, or telemetry change. A major migration, new region, significant product launch, changed retry behavior, or new customer tier can alter the denominator and make historical comparisons misleading.
After an incident, ask whether the SLI captured the user impact, whether the SLO target supported a useful decision, and whether alerts arrived early enough. Do not change the target simply to make a past result look better. If the measurement was wrong, correct the definition with a documented transition. If the target was unrealistic or too weak, explain the new assumption and preserve the old result for context.
Use this recurring review agenda:
- Confirm SLI data quality, eligibility, and dashboard links.
- Review budget consumed, remaining budget, and burn-rate alerts.
- Compare reliability trends with releases, incidents, support feedback, and dependency changes.
- Decide which reliability work should enter the next planning cycle.
- Record exceptions, owners, deadlines, and any proposed SLO changes.
Keep the policy close to the service documentation and make ownership visible in the team’s collaboration tools. Revisit this article and your internal worksheet whenever monitoring queries, alerting systems, or platform conventions change. Reliable SLO planning is not a one-time calculation; it is a repeatable conversation that helps engineering teams make clearer decisions together.