Error Budget in depth
Example: an error budget in action
Example: a hypothetical payments API has an SLO that a very high share of requests succeed and return within a latency threshold over a rolling 28-day window. Midway through the window, a bad configuration change causes a burst of errors that consumes most of the remaining budget in an hour. The fast-burn alert pages the on-call engineer, who rolls back. Under the error budget policy agreed earlier, feature releases for that service pause until the budget recovers, and the team spends the next sprint on the postmortem actions: a config validation step in CI and a canary stage for configuration changes. When the budget returns to healthy levels, normal releases resume. Nobody had to argue about whether to slow down.
Burn-rate alerting
Alerting on raw error rates produces noise. Burn-rate alerts instead ask how quickly the budget is being spent. The Google SRE Workbook recommends multiwindow, multi-burn-rate alerts:
- A fast-burn alert compares a short window and a longer confirming window at a high burn rate, catching outages that would exhaust the budget within hours or a few days. It pages.
- A slow-burn alert uses longer windows at a lower burn rate, catching gradual degradation. It creates a ticket.
Requiring both a short and a long window to exceed the threshold stops alerts from firing on a brief blip and resets them quickly once the problem is fixed.
Prometheus recording rules and alerting rules are the common foundation. Open-source projects such as Sloth and Pyrra generate SLO and burn-rate rules from a short specification, and the OpenSLO project defines a vendor-neutral SLO format. Grafana, Datadog, New Relic and the major cloud monitoring services also offer SLO and error budget features. Whatever the tool, keep SLO definitions in Git next to the service.
Writing an error budget policy
- Name the SLOs it covers and who owns them.
- Define the actions at each budget level, such as release freeze, reliability sprint or extra review.
- Define exceptions, for example security fixes always ship.
- Say who can override the policy and how that decision is recorded.
- Get it signed off by product and engineering leaders before you need it.
Common mistakes
- Setting SLOs so high that the budget is gone after any small incident, which makes the policy impossible to honor.
- Measuring from the server only, while users experience failures the server never sees.
- Counting planned maintenance or dependency failures inconsistently.
- Having a policy that leadership quietly ignores, which teaches teams the budget is meaningless.
Error budgets come from site reliability engineering, depend on a well-chosen service level objective and pair with DORA metrics on the delivery side. The same idea applies to AI agents, where the budget can cover failed or escalated tasks. We set this up in observability and SRE.