Use it to alert on SLOs instead of raw error thresholds.
Burn-Rate Alerts
Burn-rate alerts fire when the error budget is being consumed faster than allowed, using multiple windows (e.g. 14.4× over 1h and 5m for paging, 6× over 6h and 30m) to be fast and precise.
1. Error ratio recording rules per window, e.g. job:slo_errors_per_request:ratio_rate1h.
2. Page: ratio_1h > 14.4 × (1−SLO) and ratio_5m > 14.4 × (1−SLO).
3. Ticket: 6× over 6h/30m.
4. Test with synthetic errors.
5. Review against incidents.
errors → ratio per window → burn rate → multi-window alert
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 How to verify Verify boundary
Replay a past incident and confirm the alert would have fired in time. Check the alert clears after recovery.
Step 2 Common failures Narrow the fault
A single short window pages on brief spikes. A single long window keeps paging after recovery. Low-traffic services make ratios jump; use minimum request counts.
Burn rate 1 means budget lasts exactly the SLO window. Combine a long and a short window to reduce false alarms and speed reset.
job:slo_errors_per_request:ratio_rate1h— first check for this topiccurl -s localhost:9090/-/ready— Prometheus readycurl -s 'localhost:9090/api/v1/query?query=up'— scrape targets up/downpromtool check config prometheus.yml— config valid
ReferenceWhat it is1 section · depth on demand
How it works
Burn rate is the observed error ratio divided by the allowed error ratio (1 − SLO). Requiring both a long window and a short window to exceed the threshold avoids paging for short spikes and resets quickly after recovery.
ReferenceImportant terms & boundaries3 sections · depth on demand
Multi-window burn-rate alerts
For a 99.9 % SLO over 30 days (error budget 0.1 %):
| Severity | Burn rate | Long window | Short window |
|---|---|---|---|
| Page | 14.4 | 1 h | 5 m |
| Page | 6 | 6 h | 30 m |
| Ticket | 1 | 3 d | 6 h |
(job:slo_errors:ratio_rate1h > 14.4 * 0.001) and (job:slo_errors:ratio_rate5m > 14.4 * 0.001)
A burn rate of 14.4 uses 2 % of the monthly budget in one hour. Tools: Sloth, Pyrra, Grafana SLO.
In depth
Burn rate
Burn rate = observed error ratio ÷ error budget ratio. For a 99.9 % SLO the budget ratio is 0.001; an error ratio of 1.44 % is a burn rate of 14.4. At burn rate 1 the budget lasts exactly the SLO period; at 14.4 a 30-day budget is gone in about two days.
Recommended multi-window parameters for 99.9 % over 30 days (SRE Workbook)
| Severity | Long window | Short window | Burn rate | Budget consumed when it fires |
|---|---|---|---|---|
| Page | 1 h | 5 min | 14.4 | 2 % |
| Page | 6 h | 30 min | 6 | 5 % |
| Ticket | 3 days | 6 h | 1 | 10 % |
Why two windows
The long window makes the alert significant (a real share of the budget is gone); the short window makes it stop quickly after recovery. Both must exceed the threshold.
- alert: ErrorBudgetBurnFast
expr: |
(job:slo_errors:ratio_rate1h{job="api"} > (14.4 * 0.001))
and
(job:slo_errors:ratio_rate5m{job="api"} > (14.4 * 0.001))
labels: { severity: page }
with recording rules for each window:
- record: job:slo_errors:ratio_rate1h
expr: |
sum by (job) (rate(http_requests_total{code=~"5.."}[1h]))
/ sum by (job) (rate(http_requests_total[1h]))
Low-traffic services
With few requests, a handful of errors produces huge burn rates. Options: require a minimum request count in the expression, generate synthetic traffic so there is always a baseline, or aggregate several small services into one SLO. Tools such as Sloth or Pyrra generate these rules from a short SLO definition.
Common mistakes
- Single-window burn alerts that are noisy.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.