An SLI answers the question “what level of service is actually being delivered”. It is a number taken from monitoring — the basis for an SLO and an error budget: without a reliable indicator, a team can neither promise a level of quality nor honestly check whether the promise was kept.
How an SLI is chosen
A good indicator measures what matters to the user. CPU load and queue depth work as signals for alerts but not as SLIs: both can be high while the service is still slow. User-facing systems are usually monitored for availability, latency and throughput; for data stores, data durability is added, and for processing pipelines, end-to-end latency.
Indicators are most often collected on the server — for example, the share of HTTP 500 responses among all requests. But some problems are visible only on the client: slow JavaScript can ruin the experience without changing any server-side metrics, so the scenarios that matter to users are measured in the browser or the app as well.
| What we measure | SLI | Example |
|---|---|---|
| Availability | the share of valid requests that received a successful response | 99.95% of requests over a month |
| Latency | the share of requests faster than a threshold, for example 300 ms | 99% of requests faster than 300 ms |
| Tail latency | a percentile value; p99 is the threshold that 99% of requests do not exceed | p99 = 250 ms |
| Data freshness | the share of requests that used data no older than a threshold | 99.9% of responses based on data no older than 10 minutes |
| Correctness | the share of responses without errors or omissions | 99.99% of correct recommendations |
How it is calculated
Most often the indicator is the share of “good” events over a measurement window: successful requests divided by all requests. Such an SLI ranges from 0% (nothing works) to 100% (nothing is broken). If the SLO target is 99.9% successful requests, the error budget is the difference: 0.1%. A service that receives 3 million requests over four weeks can afford 3,000 failed requests; a single incident of 1,500 errors eats half the budget.
The target is set noticeably below 100%: individual errors cannot be avoided, and the budget leaves the team room for releases, experiments and failures.
SLI, SLO and SLA
The three terms describe one level of service with different commitments: an SLI is the measurement, an SLO is the target value of the indicator and the team’s internal benchmark, and an SLA is a contract with the customer and the consequences of falling short. The pairing of indicators, targets and error budgets was established by the book Site Reliability Engineering, published by Google engineers in 2016.
Sources
the term is written from these pagesVerified 9 Nov