SRE Lab · error budgets · updated

SLO Burn Simulator

Pick an SLO and a burn rate. See how long the budget lasts, which multi-window burn-rate alerts fire and when, and the Prometheus rules to match. Then see what it takes to run SLOs across thousands of services.

Burn rate × allowed error rate = actual error rate. At 99.9%, the allowed error rate is 0.1%, so a 14.4× burn means 1.44% of requests failing.

Error budget—equivalent full-outage minutes under constant traffic
Error rate at this burn—
Budget gone in—if this burn continued
This incident uses—

Budget remaining over time

Which alerts fire, and when

The SRE Workbook's multi-window pattern: an alert fires only when its long and short windows are both over the threshold (strict >). Simulated with no errors before or after the incident and constant traffic. Real alerts also wait for rule evaluation and scrapes.

AlertThresholdWindowsDuring this incidentBudget used when it fires

Prometheus alert rules

Assumes an http_requests_total counter with code and service labels, and a 5xx series that exists at zero before the first error. Without it the ratio returns nothing, not 0, and these alerts stay quiet. One page alert and one ticket alert, as in the Workbook, so a big outage sends one page.


      

Running SLOs across thousands of services

  • Tier first. Give each service a tier and a default target per tier, so teams start from a number instead of a debate. Home Depot's SRE team proposed levels like this to product managers, with 99.9% “adequate for the majority of nonselling systems.”
  • Generate the rules. The rules above cover one service. For thousands, keep each SLO as a short spec and generate the recording and alert rules from a template. Sloth does this for Prometheus, reads OpenSLO, and aims for one uniform way to create SLOs across services and teams.
  • Count coverage. Track the share of services in each tier that have an SLO with a working alert. Once Home Depot automated collection, it went from about 50 services reporting SLOs to 800. A working alert needs data: Prometheus says to export 0 for series you know may exist, so make that part of the instrumentation library, and alert separately when a service's request series goes missing.
  • Audit the policy. The Workbook's example policy halts changes other than P0 and security fixes while a service is out of budget, and requires a postmortem when one incident burns more than 20% of the budget in four weeks. Measure how often breaches actually led to both.
  • Freeze the org, agents included. When a shared platform runs out of budget, freeze every team that changes it; under the Workbook's policy, disputes go to the CTO. Agents that open PRs or roll out deploys are change too. Google's SRE team describes agents checking error budget status before they act, with agent-specific rate limits and circuit breakers.
  • People own the SLO. An agent can draft rules like these, but picking the SLI and the target is a product decision. Watch for an agent that “fixes” a noisy alert by raising a threshold or excluding an error class, and review SLO changes like code.

Sources