This SLO and error budget template helps you turn reliability goals into measurable service-level indicators, burn-rate alerts, ownership rules, and release decisions. Use the worksheets and examples below to create a policy your team can review after incidents, before launches, and during regular reliability planning.
Overview
A service-level objective (SLO) defines the reliability outcome users should receive over a stated measurement window. An error budget is the amount of unreliability permitted by that objective. Together, they give engineering and product teams a shared way to balance delivery speed with service reliability.
For example, a monthly availability SLO of 99.9% allows a small amount of failed or unavailable time during the measurement window. The exact allowance depends on the window and the way availability is measured. It should be calculated from valid user-facing events rather than inferred from a single infrastructure signal.
A useful SLO policy answers five questions:
- What user experience are we measuring?
- What counts as a good or bad event?
- What objective and measurement window apply?
- How quickly are we consuming the error budget?
- What action follows when the budget is being consumed too quickly?
SLOs are not a replacement for an incident response process. They are a decision framework that helps teams prioritize detection, mitigation, capacity work, testing, and releases. Pair this worksheet with an SRE incident runbook so that alerts lead to clear operational action.
How to estimate
Start with the user journey, then define the smallest reliable measurement that represents it. Avoid choosing an SLI simply because a metric is already available. CPU utilization, pod restarts, and database connections can help explain an incident, but they are usually supporting signals rather than user-centered indicators.
1. Choose the service-level indicator
Common SLI types include:
- Availability: the proportion of valid requests that complete successfully.
- Latency: the proportion of valid requests completed below a defined threshold.
- Freshness: the proportion of data updates delivered within an allowed age.
- Queue processing: the proportion of jobs completed within an agreed processing time.
Write the SLI as a good-events formula. A typical availability calculation is:
availability SLI = successful valid requests / total valid requests
For a latency SLI, define both the request population and the threshold:
latency SLI = requests completed within target / total valid requests
Be explicit about exclusions. Health checks, synthetic probes, retries, cached responses, administrator traffic, and intentionally rejected requests may need separate treatment. Document the choice rather than silently changing the query later.
2. Set the objective and window
Record the objective as a percentage and specify whether it is evaluated over a rolling window or a calendar period. The error budget percentage is:
error budget = 100% - SLO target
To estimate the permitted bad-event count:
allowed bad events = total valid events × error budget
This is an estimate, not a promise that failures can be spent deliberately. A small traffic period may produce a small number of allowable bad events, while a high-volume period may produce a much larger count. The team should still examine severity, concentration, and user impact rather than relying on the percentage alone.
3. Measure burn rate
Burn rate compares the current rate of budget consumption with the rate that would use the entire budget evenly across the selected window:
burn rate = observed bad-event rate / allowed bad-event rate
A burn rate of 1 means the budget is being consumed at the pace that would exhaust it by the end of the window. A higher value means the budget is being consumed faster. Use more than one time range where possible: a short window can identify urgent impact, while a longer window reduces sensitivity to a brief measurement spike.
4. Connect measurements to action
An alert is useful only when its recipient knows what to do. For each burn-rate condition, define an owner, notification route, severity, initial investigation, and escalation path. A dashboard can display the SLI, target, remaining budget, and burn rate, but it should not be the only way the team learns that a user-facing objective is at risk.
Inputs and assumptions
Use this worksheet for each service or critical user journey. Store it beside the service documentation or observability configuration so that code, dashboards, and policy can be reviewed together.
- Service or journey: Name the user-facing capability, such as checkout, login, or asynchronous report generation.
- SLO owner: Identify the team accountable for measurement quality and policy decisions.
- SLI name: Describe the outcome in user terms.
- Good-event formula: State exactly what qualifies as good.
- Bad-event formula: State what is counted as a failure or late event.
- Traffic scope: Define regions, tenants, endpoints, job types, and exclusions.
- Objective: Record the target percentage and explain why it represents an acceptable user experience.
- Window: Choose rolling or calendar measurement and record the start and end boundaries.
- Data source: Name the metric, log, trace, event table, or measurement pipeline.
- Alert thresholds: Define short- and long-window burn-rate conditions and their routes.
- Policy response: Describe what happens to releases, capacity work, and reliability priorities when budget is low.
For Prometheus-style monitoring, an alert query generally compares the observed ratio of bad events with the allowed ratio, often across two windows. Keep the exact query aligned with your metric labels and aggregation rules. A generic pattern is:
bad_events / total_events > allowed_bad_rate × burn_rate_threshold
Do not copy a query without validating counter resets, missing series, scrape gaps, low-traffic behavior, and label cardinality. If traces are the source of truth, confirm that sampling does not remove the events needed for the SLI. If logs are used, define how duplicates and delayed ingestion are handled.
Worked examples
Availability
Suppose an API receives 2,000,000 valid requests during a measurement window. If the objective is 99.9%, the error budget is 0.1%. The estimated allowance is:
2,000,000 × 0.001 = 2,000 bad requests
The team should verify that the request count excludes traffic that cannot fairly represent the user journey. It should also check whether a concentrated five-minute outage is more serious than a similar number of scattered failures.
Latency
For a search endpoint, define the good event as a valid request completed within the agreed latency threshold. If 98% of requests must meet that threshold, the error budget is 2% of valid requests. A response that succeeds but exceeds the threshold is a bad event for this SLO, even though it may not be an availability failure. Keeping availability and latency as separate objectives makes trade-offs visible.
Freshness
For a reporting pipeline, define a good event as a scheduled data update available to users within the permitted age. The SLI might be the proportion of expected updates delivered on time. Missing updates, late updates, and duplicate updates should be classified explicitly. A freshness objective is often more useful than measuring whether pipeline workers are merely running.
Queue processing
For background jobs, define a good event as a job completed successfully within the processing target, measured from acceptance to completion. Separate permanent failures from jobs that are retried successfully if the user experience treats them differently. Track queue age as a supporting signal, but calculate the SLO from completed job outcomes.
Release decision
A practical error budget policy might allow normal releases while the budget is healthy, require additional review when burn rate remains elevated, and prioritize mitigation or reliability work when the budget is nearly exhausted. The policy should name exceptions for urgent security fixes, data-loss prevention, and other safety-critical changes. Link the decision to deployment controls and rollback checks; the CI/CD deployment strategies guide can help teams select a release pattern that limits exposure.
When to recalculate
Revisit the worksheet whenever the measured experience, traffic pattern, or operating policy changes. At minimum, review it after a significant incident, a new product flow, a change in service ownership, a migration, or a monitoring-system redesign.
Recalculate assumptions when:
- request, job, or event volumes change enough to alter the practical budget;
- new regions, tenants, endpoints, or workload types are added;
- instrumentation changes, including metric names, labels, sampling, or aggregation;
- the service moves between infrastructure platforms or observability tools;
- users report an impact that the current SLI does not detect;
- the objective repeatedly produces alerts with no useful action;
- release, rollback, or incident policies change.
Hold a monthly SLO review with service owners, developers, operations, and product representatives. Review objective performance, remaining budget, alert quality, incidents, exceptions, and planned changes. Record each decision with the date, evidence, owner, and follow-up. A short decision log prevents the objective from drifting without explanation.
To put this into practice, choose one important user journey, write its good-event formula, calculate the budget from a representative window, and create one actionable burn-rate alert. Validate the result against a known incident or controlled test. Then publish the policy, assign an owner, and schedule the next review. Expand to additional services only after the first SLO has a trustworthy measurement and a clear operational response.