Bookmarks

SLI — service level indicator

A measurable quantity that shows what level of service the user actually receives: the share of successful requests, latency, availability.

Also: SLI, service-level indicator

checked 9 Nov

All terms

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 measureSLIExample
Availabilitythe share of valid requests that received a successful response99.95% of requests over a month
Latencythe share of requests faster than a threshold, for example 300 ms99% of requests faster than 300 ms
Tail latencya percentile value; p99 is the threshold that 99% of requests do not exceedp99 = 250 ms
Data freshnessthe share of requests that used data no older than a threshold99.9% of responses based on data no older than 10 minutes
Correctnessthe share of responses without errors or omissions99.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 pages

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

  • SLOservice level objective

    An SLI is the actual measurement (“99.94% of successful requests over a month”), while an SLO is the target the indicator is kept at (99.9%).

  • SLAservice level agreement

    An SLA is a contract with the customer that mentions indicators and compensation; an SLI is a technical metric inside monitoring, with no obligations attached.

In depth in the references

where the topic is covered in detail