Interview Prep/SRE & Reliability/Error Budgets & Burn-Rate Alerting

Write the fast-burn page alert for a 99.9% SLO in Prometheus.

AdvancedConceptError Budgets & Burn-Rate Alerting
Answer
- alert: CheckoutErrorBudgetBurnFast
  expr: |
    (
      slo:sli_error:ratio_rate1h{slo="checkout-availability"} > (14.4 * 0.001)
      and
      slo:sli_error:ratio_rate5m{slo="checkout-availability"} > (14.4 * 0.001)
    )
    or
    (
      slo:sli_error:ratio_rate6h{slo="checkout-availability"} > (6 * 0.001)
      and
      slo:sli_error:ratio_rate30m{slo="checkout-availability"} > (6 * 0.001)
    )
  for: 2m
  labels:
    severity: page
  annotations:
    summary: "Checkout is burning its 30d error budget fast"
    runbook_url: "https://runbooks.example.com/checkout/slo-burn"

The or combines both paging tiers into one alert; many teams keep them as two named alerts instead, to show which tier fired.

All SRE & Reliability questions Roadmap: SRE & incident response

More on Error Budgets & Burn-Rate Alerting