Interview Prep/Monitoring & Observability/Alerting Strategy, SLOs & Runbooks

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.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Alerting Strategy, SLOs & Runbooks