How-To Guide

How to Implement SLO Burn-Rate Alerts

Alert on error-budget burn rate with multi-window, multi-burn-rate rules so alarms fire on real outages without paging on every blip.

On this page

  1. Introduction
  2. From SLO to Error Budget to Burn Rate
  3. Why Multiple Burn Rates
  4. Defining the SLI Precisely
  5. Choosing Windows and Burn Rates
  6. Routing and Ownwership
  7. Common Pitfalls and Conclusion

Introduction

Alerting on every error or every slow request drowns the on-call engineer in noise until they stop looking. Alerting only on a raw threshold either fires too late or is tuned so high it misses real incidents. Burn-rate alerting fixes this by measuring how fast a service is consuming its error budget and firing when the rate is unsustainable. A service with a 99.9 percent availability target has a budget of roughly forty-three minutes of downtime a month; burn-rate alerts ask whether the current rate would exhaust that budget much sooner than the calendar allows.

From SLO to Error Budget to Burn Rate

An SLO is a target such as 99.9 percent of requests succeed over thirty days. The error budget is the complement: 0.1 percent of requests may fail, which over the window is a finite pool of tolerable failures. Burn rate is the speed at which the pool is draining: a burn rate of 1 exhausts the budget exactly at the end of the window, a burn rate of 14.4 exhausts a thirty-day budget in about two days.

The framing converts alerting from “is the error rate high” into “are we on track to run out of budget”. A brief spike at a low volume barely moves the budget and should not page; a moderate error rate sustained for an hour can burn a week of budget and should. Burn rate captures both magnitude and duration in one number.

# Error budget math
SLO            = 99.9% success over 30 days
error budget   = 0.1% of requests
window          = 30 days = 43,200 minutes
budget minutes  = 0.001 * 43,200 = 43.2 minutes of full outage
burn rate 1     = budget lasts exactly 30 days
burn rate 14.4  = budget exhausted in 30d / 14.4 = 2.08 days

Why Multiple Burn Rates

A single burn-rate rule forces a bad trade-off. A high rate catches fast outages but misses slow degradations; a low rate catches slow burns but reacts too late to a sudden outage. The accepted solution is a pair of rules at different speeds: a fast one that pages quickly for severe outages and a slow one that tickets a chronic drip.

The common shape is 14.4x over a one-hour window for a page and 6x over a six-hour window for a ticket, both also checked against a five-minute and a thirty-minute short window to reduce false positives. The short window confirms the burn is still happening now, while the long window gives statistical significance so a single unlucky minute does not page.

groups:
  - name: slo-burn-rate
    rules:
      - alert: HighBurnRateFast
        expr: |
          (rate(http_requests_total{code=~"5.."}[5m]) / rate(http_requests_total[5m]) > 14.4 * 0.001)
          and
          (rate(http_requests_total{code=~"5.."}[1h]) / rate(http_requests_total[1h]) > 14.4 * 0.001)
        labels: { severity: page }
        annotations:
          summary: "Burning error budget 14.4x — budget gone in ~2 days"
      - alert: HighBurnRateSlow
        expr: |
          (rate(http_requests_total{code=~"5.."}[30m]) / rate(http_requests_total[30m]) > 6 * 0.001)
          and
          (rate(http_requests_total{code=~"5.."}[6h]) / rate(http_requests_total[6h]) > 6 * 0.001)
        labels: { severity: ticket }

Defining the SLI Precisely

Burn-rate alerts are only as good as the service level indicator behind them. Decide whether success is measured per request or per request weighted by importance, and whether it includes only server errors or also latency. A common choice is the fraction of requests that returned a non-5xx status within a latency bound, computed from the same metrics you already emit.

Measure at the boundary the user experiences: valid requests that reach your service, excluding client errors such as 404 that are not availability failures and excluding health checks. If the numerator and denominator disagree about what counts, the burn rate is meaningless. Document the definition next to the alert.

# Good events / total events, as a ratio
SLI = sum(rate(http_requests_total{code!~"5..",route!="/healthz"}[5m]))
    / sum(rate(http_requests_total{route!="/healthz"}[5m]))

Choosing Windows and Burn Rates

The burn rate to use follows from how much of the budget you are willing to spend before firing. A 14.4x page over a one-hour window fires when about two percent of the thirty-day budget is gone in an hour, which is fast enough to catch a real outage within minutes. A 6x ticket over six hours fires on a slower bleed before it becomes a multi-day problem.

The short-window companion exists to reset a long-window alert that is still latched after the incident ends. Without it, a six-hour window keeps a resolved alert firing for hours. The pair is what gives you both quick detection and quick recovery, and it is worth tuning to your traffic volume so low-traffic services do not page on single errors.

Routing and Ownwership

A page and a ticket are different products. The fast burn pages the on-call engineer with a link to the dashboard and the runbook. The slow burn opens a low-priority ticket for the team to address during working hours. Treating them the same is how a chronic but tolerable drip becomes alert fatigue, or how a real outage waits in a queue.

Each alert should name the service owner, the SLO it protects, and the first diagnostic step. The burn rate tells you something is consuming budget; the runbook tells the responder what to check first. Attach both to the alert so the page is actionable without a search.

Common Pitfalls and Conclusion

Do not alert on error rate alone; it ignores volume and duration. Do not use one window; you need a fast and a slow one. Do not let the SLI definition drift from what users experience, or you will protect the wrong thing. And do not point burn-rate alerts at a service with almost no traffic, because the small denominator makes the rate jump on a handful of errors.

Burn-rate alerting turns an SLO into an alarm that fires on the only question that matters: are we about to run out of error budget. Define the SLI at the user boundary, pick a fast and a slow burn rate with short-window confirmation, route pages and tickets differently, and attach the owner and runbook. Done well, on-call is paged when the system is genuinely unhealthy and left alone when it is not.

Sources: Google SRE Workbook: Alerting on SLOs, SRE: Error budgets, Prometheus: Alerting rules.

FAQ

Why use two windows in one alert?
The long window provides significance so a momentary blip does not page, while the short window confirms the problem is ongoing, so the alert clears quickly when it ends. The pair gives both low false positives and fast recovery.
How do I pick the burn-rate multipliers?
From the budget fraction you are willing to spend. A 14.4x rate over one hour spends about two percent of a thirty-day budget; 6x over six hours catches slower bleeds. Tune the multipliers and windows to your traffic volume and tolerance.

Related Examples