awesome-everything RU
↑ Back to the climb

Observability

Multi-window multi-burn-rate alerting: why AND beats OR

Crux Single-window SLO alerts are either too noisy (short window) or too slow to clear (long window) — the MWMBR pattern''''s AND between a long and a short window gets both fast detection and fast reset.
Your altitude — climbing toward senior
ZeroJuniorMiddleSenior
You are at middle altitude — in the sky
◷ 15 min

An on-call team uses a single alert: “fire if the error rate over the past hour exceeds 1.44%.” The pager fires at 2 AM. The engineer logs in. The issue cleared itself 55 minutes ago — but the 1-hour window still contains the bad data. The engineer stays awake for nothing.

Why naive SLO alerts fail in two ways

The SRE workbook classifies six approaches to SLO alerting. Five fail in predictable ways.

Approach 1 (raw error rate > SLO threshold): fires hundreds of times per day on tiny blips. A single bad request batch triggers the page; teams learn to ignore the pager — the classic alert fatigue death spiral.

Approach 5 (single burn-rate threshold, e.g. 14.4x over 1h): better — catches real outages — but the reset is slow. After the incident is resolved, the 1-hour window still contains 55 minutes of bad data. The alert keeps firing for nearly an hour post-fix. Engineers cannot tell if their change helped.

Approach 6 (MWMBR) is the only one that balances detection latency, noise resistance, and recovery latency. It is the production default in Google, Datadog, Grafana, Splunk, Honeycomb, Sloth, and Pyrra.

The dual-window trick

The key insight: combine a long window (noise resistance) AND a short window (recovery resolution):

  • Long window (e.g. 1h): confirms the burn is sustained, not a transient spike
  • Short window (e.g. 5m): confirms the burn is still happening right now

The AND logic:

  • If only the long window is high: the incident probably ended; the short window cleared
  • If only the short window is high: a brief spike that has not yet accumulated into a sustained burn
  • If both are high: a real outage that is both severe and still active — page

When the incident resolves, the short window clears within 5 minutes. The alert resets within 5 minutes instead of within 55 minutes. Detection time and reset time are both bounded.

The canonical MWMBR configuration (99.9% SLO)

SeverityLong windowShort windowBurn rateBudget consumed if sustained
Page1h5m>14.4x2% in 1h — fast outage, urgent
Page6h30m>6x5% in 6h — moderate sustained burn
Ticket3d6h>1x10% in 3d — slow burn, needs attention
MWMBR canonical numbers at 99.9% SLO
14.4x burn rate = error rate of
1.44% (at 99.9% SLO)
14.4x for 1h = budget consumed
~2% of the 28-day budget
6x for 6h = budget consumed
~5% of the 28-day budget
1x for 3d = budget consumed
~10% of the 28-day budget
Alert reset time (5m short window)
<5 minutes after fix
Alert reset time (single 1h window)
up to 55 minutes after fix

Prometheus implementation

# Recording rule: fast-request ratio over a 1h window
record: job:slo_latency_fast:ratio_rate1h
expr: |
  sum(rate(http_request_duration_seconds_bucket{le="0.2"}[1h]))
  /
  sum(rate(http_request_duration_seconds_count[1h]))

# Page alert: 1h AND 5m both at >14.4x burn
alert: SLOLatencyBurnFast
expr: |
  (
    (1 - job:slo_latency_fast:ratio_rate1h) > (14.4 * 0.001)
    and
    (1 - job:slo_latency_fast:ratio_rate5m) > (14.4 * 0.001)
  )
labels:
  severity: page
annotations:
  summary: "Latency SLO burning at >14.4x over 1h AND 5m"

The 14.4 * 0.001 is burn_rate × (1 − SLO) = 14.4 × 0.001 = 0.0144 — the error rate threshold corresponding to 14.4x burn at 99.9% SLO.

Why this works

The thresholds 14.4, 6, and 1 are not arbitrary. They come from solving: “what burn rate would consume X% of the budget in window W?” With a 30-day period, 2% budget in 1h: burn = (0.02 × 720h) / 1h = 14.4. With 5% budget in 6h: burn = (0.05 × 720h) / 6h = 6. With 10% budget in 3 days (72h): burn = (0.10 × 720h) / 72h = 1. These thresholds are derived from first principles, not empirical tuning — any team can recompute them for a different SLO window length.

Complete the 6h+30m page alert for the same 99.9% SLO

1/3
Quiz

A single-window alert fires at 14.4x burn over 1 hour. The incident resolves at 12:00. When does the alert clear?

Quiz

An MWMBR alert fires when the 1h burn exceeds 14.4x AND the 5m burn exceeds 14.4x. The 1h burn is 15x and the 5m burn is 12x (just under threshold). Does the alert fire?

Recall before you leave
  1. 01
    What are the two failure modes of single-window SLO alerting?
  2. 02
    Why does the MWMBR pattern use AND between windows instead of OR?
  3. 03
    Derive the 14.4x burn rate threshold for the 1h+5m page alert at a 99.9% SLO with a 30-day window.
Recap

Naive SLO alerts fail in one of two ways: short windows are noisy and fire on every transient spike, long windows reset slowly and keep the on-call awake after the incident clears. Multi-window multi-burn-rate alerting solves both by combining a long window (noise resistance) with a short window (recovery resolution) using AND logic: the page fires only when the burn is both sustained AND currently ongoing. The canonical thresholds — 14.4x/6x/1x across 1h/6h/3d windows — derive from “what burn consumes 2%/5%/10% of the budget in each window?” At a 99.9% SLO, 14.4x means a 1.44% error rate; the 5-minute short window clears the alert within 5 minutes of fix. Hand-rolling MWMBR PromQL per service is error-prone; use Sloth or Pyrra to generate it declaratively.

Connected lessons
appears again in167
Continue the climb ↑Error budget policy, latency SLOs, and composite journeys
shortcuts expand
search
K
prev piece
k
next piece
j
cycle tier
t
this menu
?
sources3
expand
  1. 01
  2. 02
  3. 03

Trademarks belong to their respective owners. Editorial reference only.