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

How do you alert on a latency SLO with burn rates?

AdvancedConceptError Budgets & Burn-Rate Alerting
Answer

Exactly like availability, using the latency "bad" ratio (requests slower than the threshold):

- record: slo:sli_latency_error:ratio_rate1h
  labels: {slo: checkout-latency}
  expr: |
    1 - (
      sum(rate(http_request_duration_seconds_bucket{job="checkout",le="0.3"}[1h]))
      /
      sum(rate(http_request_duration_seconds_count{job="checkout"}[1h]))
    )

Then apply the same 14.4/6/3/1 thresholds multiplied by 1 - SLO (for a 99% latency SLO, 14.4 * 0.01).

All SRE & Reliability questions Roadmap: SRE & incident response

More on Error Budgets & Burn-Rate Alerting