Interview Prep/SRE & Reliability/Burn-Rate Alerts & Alertmanager

The burn-rate alert sits in `Pending` for the whole incident and never reaches `Firing`.

IntermediateTroubleshootingBurn-Rate Alerts & Alertmanager
Answer

Likely causes → The for: duration is longer than the condition stays true continuously. If the short-window ratio dips below threshold for even one evaluation, the pending timer resets. A long for: (15m) on a 5m short window makes this likely during spiky errors.

Diagnose →

ALERTS{alertname="CheckoutErrorBudgetBurnFast"}
slo:sli_error:ratio_rate5m{slo="checkout-availability"}

Graph the short-window ratio against the threshold.

Fix → Use for: 2m (or less) on paging burn alerts; the long window already provides the noise filtering. Optionally use keep_firing_for (Prometheus 2.42+) to avoid flapping once firing.

Prevent → Unit test alerts with spiky input series in promtool test rules.

All SRE & Reliability questions

More on Burn-Rate Alerts & Alertmanager