SLO and SLI
An SLI is a measured indicator of service quality; an SLO is the internal target for it, stricter than any SLA you sign.
An SLI (service level indicator) is a measured indicator of service quality, such as the share of requests answered successfully under a set time. An SLO (service level objective) is the internal target for it over a window, stricter than any SLA you sign, so the team reacts before the contract is at risk.
The SLI is the number you measure; the SLO is its target over a window, for example a month. The SLA is the promise in the contract, with consequences. The gap between 100% and the SLO is the error budget: while it lasts you ship, when it runs out you fix reliability first. A 99.9% target over 30 days leaves about 43 minutes of failure. Google’s SRE book advises having as few SLOs as possible and choosing them by what users care about.
A common mistake is a 100% target: no system meets it, and it leaves no room to ship. Another is measuring from server health checks while users see something else. Start from the four golden signals, pick one or two indicators per user journey and make the observability data able to compute them.
Sources
Related terms
- SLA (service level agreement): A contract that defines availability, response and fix times per priority, and what happens when they are missed.
- Observability (o11y): Being able to tell what a running system is doing, and why, from the data it emits: logs, metrics and traces.
- Runbook: A short document that tells someone else how to run a system: where it lives, how to deploy, how to recover.
- Error budget: The amount of unreliability an SLO allows over a period, used to decide when a team ships new features and when it stops to fix reliability.
- Four golden signals (latency, traffic, errors, saturation): Four metrics from Google’s SRE book that cover most of what to watch on a user-facing service: latency, traffic, errors and saturation.
- On-call rotation (on-call rota): A schedule, also called a rota, that names who responds to production alerts outside normal work, with an escalation path if that person does not answer.
