Burn-Rate Alert Calculator
Compute multi-window, multi-burn-rate alert thresholds (the Google SRE workbook pattern) from an SLO.
Error budget
0.100%
43m 12s / 30d
Budget remaining
90.0%
38m 53s
Total window
30 days
| Long / short window | Burn rate | Budget consumed over window | Action | Time to exhaust |
|---|---|---|---|---|
| 1h / 5m | 14.4x | 2.00% | Page (Fast burn) | 1d 21h |
| 6h / 30m | 6x | 5.00% | Page (Fast burn) | 4d 12h |
| 1d / 2h | 3x | 10.00% | Ticket (Slow burn) | 9d |
| 3d / 6h | 1x | 10.00% | Ticket (Slow burn) | 27d |
Time-to-exhaust assumes the listed sustained burn rate against your remaining 90.0% of budget.
Example Prometheus alert
# Multi-window, multi-burn-rate alert (SLO = 99.9%, error budget = 0.100% bad) # Fast burn -> PAGE ( job:slo_errors_ratio:rate1h > (14.4 * 0.00100) and job:slo_errors_ratio:rate5m > (14.4 * 0.00100) ) or ( job:slo_errors_ratio:rate6h > (6 * 0.00100) and job:slo_errors_ratio:rate30m > (6 * 0.00100) ) # Slow burn -> TICKET or ( job:slo_errors_ratio:rate1d > (3 * 0.00100) and job:slo_errors_ratio:rate2h > (3 * 0.00100) ) or ( job:slo_errors_ratio:rate3d > (1 * 0.00100) and job:slo_errors_ratio:rate6h > (1 * 0.00100) )
Put this check in a runbook.
BitSentry runs the same checks every time and keeps each output.