What happens to burn-rate alerts during a traffic drop to zero?
AdvancedConceptError Budgets & Burn-Rate Alerting
Answer
With zero traffic the ratio is 0/0, which PromQL returns as NaN, and NaN > x is false, so burn-rate alerts go silent. That is dangerous if traffic dropped because the service is unreachable (DNS broken, LB misconfigured). Cover it with:
- A traffic-drop alert comparing current rate to the same time last week:
sum(rate(http_requests_total{job="checkout"}[10m])) < 0.3 * sum(rate(http_requests_total{job="checkout"}[10m] offset 1w)) - Synthetic probes from outside, which keep generating events.
- An
absent()alert for the metric disappearing entirely.
More on Error Budgets & Burn-Rate Alerting
What is an error budget and how do you calculate it?BeginnerWhat is an error-budget policy?BeginnerWhat happens when the error budget is exhausted? Is it a punishment?IntermediateWhat should you do if the error budget is never spent?IntermediateWhat is burn rate?IntermediateHow much budget does an alert at burn rate B over window W consume?Advanced