Skip to the page

Monitoring and on-call · mid

SLIs, SLOs and error budgets

An SLI is a measured share of good events, an SLO is the target over a window, and the error budget is what is left. Burn-rate alerts use the budget to decide when to page.

The notes

What you must know

  • SLI: good events divided by valid events. SLO: the target over a window (28 or 30 days). Error budget: what remains; 99.9% means 0.1% may fail.
  • Budget maths: 99.9% over 30 days is about 43 minutes of full outage, or 1 failed request in 1,000.
  • Payments SLIs: availability (not 5xx and inside a timeout), latency (share under, for example, 500 ms), and correctness (our payment state matches the gateway after reconciliation). Measure at the load balancer or by clients, not only inside the service.
  • Pick targets from the current baseline and what users need. Each extra nine costs far more. A service cannot be more reliable than a hard dependency unless it has a fallback or safe retries.
  • Agree a budget policy with product in advance: when the budget is spent, risky releases pause and the team works on reliability.
  • Burn-rate alerts (SRE Workbook), for a 99.9% SLO: page at 14.4 times the normal burn over 1 hour (confirmed over 5 minutes), page at 6 times over 6 hours (confirmed over 30 minutes), ticket at 1 time over 3 days.
  • Alert on burn rate, not on raw error counts.

The red pen

Common traps: mistake → fix

  • Mistake: 100% reliability is the goal

    Fix: the budget lets you ship; each extra nine has a cost.

  • Mistake: Internal CPU is a good SLI

    Fix: SLIs measure what users feel.

  • Mistake: Fixed error counts are fine for alerts

    Fix: traffic changes; use ratios and burn rates.

Easy to hard

Questions interviewers ask, easy to hard

  1. What is an SLO and what is an error budget?
  2. How much downtime does 99.9% allow in 30 days?
  3. Choose SLIs for a payments API.
  4. What happens when the budget is spent?

Practise

Practise with these questions

Your first interview is free

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview