Multi-Window, Multi-Burn-Rate Alerts
A single burn-rate rule can't be both fast and complete: a 1-hour window at 14.4x catches outages but misses a steady 8x burn that empties the budget in under four days, and keeps firing after the fix. The SRE Workbook's answer, now the standard way to alert on SLOs, combines two ideas:
- Multiple burn rates: a fast-burn rule (high threshold, short window) and slower rules (lower thresholds, longer windows), so both sharp outages and slow leaks are caught.
- Multiple windows: each rule also requires a short window (1/12 of the long one) to be above the same threshold. The long window proves the problem is significant; the short window proves it is still happening, so the alert resets within minutes of the fix.
The recommended set (99.9% SLO, 30-day window)
| Severity | Long window | Short window | Burn rate | Error ratio above | Budget consumed when it fires |
|---|---|---|---|---|---|
| page | 1 hour | 5 minutes | 14.4 | 1.44% | 2% |
| page | 6 hours | 30 minutes | 6 | 0.6% | 5% |
| ticket | 1 day | 2 hours | 3 | 0.3% | 10% |
| ticket | 3 days | 6 hours | 1 | 0.1% | 10% |
The table follows the workbook's alerting chapter (sre.google/workbook/alerting-on-slos), which lists the two pages and the 3-day ticket in its summary table and adds the 1-day/2-hour ticket in its example rules. Each line fires when both its windows are above the threshold; alerts of the same severity are OR-ed together.
Simulating the rules
The model replays minute-by-minute burn rates for five scenarios against three rule sets and reports when each one first pages, when it stops, and whether a ticket was opened:
WINDOWS = { # name: list of (long, short, burn) in minutes
"1h@14.4 only": [(60, 0, 14.4)],
"1h+6h, long only": [(60, 0, 14.4), (360, 0, 6)],
"multi-window page": [(60, 5, 14.4), (360, 30, 6)],
}
TICKET = [(1440, 120, 3), (4320, 360, 1)]
HOURS = 6 * 24
def timeline(start, minutes, burn, base=0.2):
rates = [base] * (HOURS * 60)
for m in range(start, min(start + minutes, len(rates))):
rates[m] = burn
return rates
SCENARIOS = {
"full outage 10 min": timeline(4000, 10, 1000),
"10% errors for 30 min": timeline(4000, 30, 100),
"burn 8 for 8 hours": timeline(4000, 480, 8),
"burn 2 for 2 days": timeline(4000, 2880, 2),
"blip: burn 50 for 3 min": timeline(4000, 3, 50),
}
def prefix(rates):
out = [0.0]
for r in rates:
out.append(out[-1] + r)
return out
def avg(p, m, w): # mean burn over the last w minutes ending at minute m
lo = max(0, m + 1 - w)
return (p[m + 1] - p[lo]) / (m + 1 - lo)
def fires(p, m, rules):
return any(avg(p, m, lw) > b and (sw == 0 or avg(p, m, sw) > b) for lw, sw, b in rules)
def run(rates, rules):
p = prefix(rates)
on = [fires(p, m, rules) for m in range(4000, len(rates))]
if True not in on:
return "-", "-"
first = on.index(True)
last = len(on) - 1 - on[::-1].index(True)
end = max(i for i, r in enumerate(rates) if r > 0.2) - 4000
return f"{first}m", f"{last - end:+}m"
print(f"{'scenario':<24}" + "".join(f"{n:>22}" for n in WINDOWS) + f"{'ticket':>8}")
for name, rates in SCENARIOS.items():
row = f"{name:<24}"
for rules in WINDOWS.values():
first, reset = run(rates, rules)
row += f"{'page ' + first + ' reset ' + reset if first != '-' else 'no page':>22}"
ticket = run(rates, TICKET)[0]
print(row + f"{'yes' if ticket != '-' else 'no':>8}")scenario 1h@14.4 only 1h+6h, long only multi-window page ticket
full outage 10 min page 0m reset +59m page 0m reset +357m page 0m reset +29m yes
10% errors for 30 min page 8m reset +51m page 8m reset +339m page 8m reset +28m no
burn 8 for 8 hours no page page 267m reset +92m page 267m reset +7m yes
burn 2 for 2 days no page no page no page yes
blip: burn 50 for 3 min no page no page no page no
Read the columns from left to right:
- 1h@14.4 only misses the 8-hour burn at 8x (which would empty the budget in under four days) and keeps paging for most of an hour after short outages end.
- Adding a 6-hour window at 6x catches the slow burn, but long windows alone keep firing for hours after the incident (the reset column).
- The multi-window version pages for the same events at the same time, and stops within its short window after the end: about half an hour after the short outages (both page rules fired, and the 30-minute window takes longest to clear), 7 minutes after the slow burn.
- The burn of 2 for two days never pages, which is right (it would take 15 days to empty the budget), but it opens a ticket. The 3-minute blip does nothing at all: its 5-minute window is far above 14.4, but the 1-hour window never gets there, and nobody should be woken for three bad minutes.
Low-traffic services
Burn-rate alerts assume enough requests to make a ratio meaningful. At 10 requests per hour, a single failure is
a 10% error ratio and pages at 14.4x. Options from the workbook: generate synthetic traffic (probes) so the ratio
has a denominator, combine several small services into one SLO, alert on an absolute number of failures, or accept
a lower SLO. Don't simply add a long for: clause: it delays real pages as much as false ones.
Test yourself
What is the short window in a multi-window alert for?
- Making the alert fire faster
- Confirming the problem is still happening, so the alert resets soon after the fix
- Reducing Prometheus load
- Detecting slow burns
Which rule catches a steady burn rate of 8 lasting eight hours?
- 1 h / 5 min at 14.4
- 6 h / 30 min at 6
- Neither
- Only a ticket
What does the workbook suggest the short window should be relative to the long window?
- 1/2
- 1/12
- Equal
- Double