Course map

Topic 203 / Core

SLIs, SLOs and SLAs

Chapter 12.5 · Service Levels

What and why

Monitoring (→ 202) can alert on a symptom, but "the symptom" needs a precise, agreed definition before anyone can say whether the system is actually meeting its target. The chain fixes that: an SLI (service level indicator) is a directly measured number — e.g., the fraction of requests that succeeded and returned under 300 ms. An SLO (service level objective) is the internal target for that SLI over a stated window — e.g., 99.9% over 30 days. An SLA (service level agreement) is an external, contractual version of an SLO, usually looser, with a stated penalty if missed. Builds on: → 202 (monitoring and alerting: four golden signals, RED and USE methods, alert fatigue, synthetic and dependency monitoring).

Diagram

SLI  (measured)   "99.94% of requests over the last 30 days succeeded under 300 ms"
  │
  ▼
SLO  (internal target)   "99.9% over 30 days"           ← what the team is held to
  │
  ▼
SLA  (external contract)  "99.5% over 30 days, or a service credit"  ← looser, with a penalty

How it works

  1. Choose an SLI that's a direct, honest proxy for what the user experiences — not merely whatever is easiest to measure on the server side.
  2. Set an SLO: the internal target for that SLI, over an explicit window — a target with no window attached can't be checked.
  3. If an external contract is needed, wrap the SLO in an SLA — set it looser than the SLO, leaving a buffer so ordinary operational noise doesn't trigger a contractual penalty.
  4. Compute the error budget as 1 − SLO (→ 204) — the precise, numeric amount of "unreliability" the SLO already permits.
  5. Track the SLI continuously and compare it against the SLO's window on a rolling basis — a target checked once a quarter hides weeks of a budget already spent.

Practical example

(exact arithmetic). SLO = 99.9% success over a 30-day window. 30 days = 30 × 24 × 60 = 43,200 minutes. Error budget = 0.1% × 43,200 = 43.2 minutes of allowed failed-request-equivalent time per 30-day window. If the matching SLA promises 99.5% with a service credit, it leaves a 0.4 percentage-point buffer (99.9% − 99.5%) between what the team is actually held to internally and what would trigger a contractual penalty — operational noise inside that buffer never costs the business a credit.

When to use it

  • Use SLOs for any service with real users or downstream consumers depending on it — without one, every outage debate starts from zero shared definition of "bad enough to act."
  • Avoid setting an SLO to "whatever we currently achieve" without checking what users actually need — it either locks in unnecessary over-engineering or quietly under-promises.
  • Failure scenarios: an SLI that doesn't reflect real user experience (e.g., measuring only server-side success while ignoring requests that failed before reaching the server at all); an SLA accidentally set stricter than the internal SLO, guaranteeing eventual contractual breach; a target nobody actually tracks, so "meeting the SLO" is an opinion, not a measurement.
  • Simpler alternative: for an early-stage, low-stakes internal system, an informal target ("try to keep it mostly up") may be enough until real users or a contract demand precision — introduce the full SLI→SLO→SLA chain when that precision starts to matter.

Practice

(process plus a short numeric check; 15–20 min). For a service you know, write one SLI in precise, measurable terms, set an SLO with an explicit window, and compute the resulting error-budget minutes for that window using the practical example's method. Then state, in one sentence, what SLA (if any) you'd be willing to offer externally, and how large a buffer it leaves below the SLO. Done when the error-budget minutes are computed exactly, not estimated.

Key takeaway

SLI is what's measured, SLO is the internal target over a window, SLA is the external, looser contract — and 1 − SLO is an exact error-budget number, not a feeling. Done when you can: write a precise SLI, compute its SLO's error budget in minutes for a given window, and state why an SLA should sit below the SLO, not above it. Used next in → 204 (error budgets, the operational use of 1 − SLO), → 207 (production readiness, where a defined SLO is a launch gate).

References

Site Reliability Engineering, 2nd edition; The Site Reliability Workbook — see references.md.

Source directory

Search the guide