In a multi-window burn-rate alert, what is the short window for?
AdvancedProductionAlerting Strategy, SLOs & Runbooks
Answer
The long window (for example 1h) gives significance: enough budget has really been spent. But on its own it keeps firing for up to an hour after the problem is fixed, because the bad minutes are still inside the window. The short window (typically 1/12 of the long one, e.g. 5m) checks that the burn is still happening now. Both must be true:
expr: |
job:slo_errors_per_request:ratio_rate1h{job="checkout"} > (14.4 * 0.001)
and
job:slo_errors_per_request:ratio_rate5m{job="checkout"} > (14.4 * 0.001)
Result: fast detection, fast reset, and no lingering page after recovery.
More on Alerting Strategy, SLOs & Runbooks
What is the single most important rule for deciding whether an alert should page a human?BeginnerWhat severity levels do you define, and where does each one go?BeginnerWhy do mature teams alert on SLO burn rate instead of raw error rate thresholds?IntermediateHow do you generate SLO alert rules without hand-writing dozens of burn-rate expressions?IntermediateHow do you pick an SLO target for a service that has never had one?BeginnerWhat makes a good SLI, and where should it be measured?Intermediate