SLI meaning: what is a service level indicator?

SLI stands for service level indicator: a carefully defined measurement of how a service behaves for its users, usually good events divided by valid events, such as the share of HTTP requests that succeeded or finished within 300 ms. SLOs set targets on SLIs, so a badly chosen SLI makes every target built on it meaningless.

· Updated · also called service level indicator
SLI examples
  • Availability: successful requests ÷ valid requests (or passing checks ÷ all checks).
  • Latency: requests faster than a threshold, such as 300 ms, ÷ valid requests.
  • Error rate: requests answered with 5xx ÷ all requests (the inverse of availability).
  • Freshness: share of minutes in which the data is less than N minutes old.
  • Job success: scheduled runs that finished on time ÷ scheduled runs.
SLISLOSLA
Stands forService level indicatorService level objectiveService level agreement
What it isA measurementAn internal target for that measurementA contract with customers
ExampleShare of requests that succeeded in under 300 ms99.9% of requests good over 28 days99.5% monthly uptime, or service credits
If missedNothing by itselfReliability work comes before featuresMoney or credits go to the customer

Why an SLI matters

"Is the service healthy?" needs a number everyone agrees on. An SLI fixes the definition: which requests count, what counts as good, and where it is measured (load balancer, application or synthetic check).

Good SLIs track what users feel: availability, latency, correctness and freshness. Server CPU is not an SLI; the checkout success rate is.

How to measure an SLI

SLI = good events ÷ valid events × 100%
example definition: good = status < 500 and latency ≤ 300 ms; valid = all requests except health checks

Worked example

In one day an API received 1,000,000 valid requests (health checks excluded). 997,350 of them returned without a server error within 300 ms.

  1. SLI = 997,350 ÷ 1,000,000 = 0.99735, or 99.735%.
  2. Bad requests = 1,000,000 − 997,350 = 2,650.
  3. Against an SLO of 99.5% the day is fine (5,000 bad allowed); against 99.9% it is not, with 2,650 bad requests where 1,000 were allowed.

Result: The same measurement passes one target and fails another, which is why the SLI definition and the SLO must be agreed together.

Which SLI for which kind of service

Google's SRE workbook groups SLIs by the type of system. The pattern is always good events ÷ valid events; what changes is what an event is.

SystemSLIGood eventValid event
Request/response API or websiteAvailabilityresponse without a 5xx or timeoutevery request except health checks and bots
Request/response API or websiteLatencyresponse faster than a threshold (for example 300 ms)every successful request
Web pages, real visitorsLoading experiencepage load with LCP ≤ 2.5 s (RUM)every page load measured
Data pipelineFreshnessrecord updated within the last hourevery record that should be updated
Cron or batch jobCompletionrun that finished successfully on time (heartbeat)every scheduled run
StorageDurabilityobject read back intactevery object written

Where to measure an SLI

Measured atSeesMisses
Application metrics or APMevery request your code handles, per endpointrequests that never reach the app: DNS, TLS, load balancer and network failures
Load balancer or CDN logsevery request that reached your edge, with status and timingfailures before the edge (DNS, the user's network)
External synthetic checksthe full path from outside, including DNS and TLS, even with no trafficproblems that affect only some users or some endpoints; it is a sample, not every request
Real user monitoringwhat real browsers experience, by device and regionanything when there is no traffic; users who never load the script

Most teams combine two: a request-based SLI at the edge for volume, and an external check so a total outage, which produces no requests at all, still counts as bad. Write the measurement point into the SLI definition, because the same service measured at the application and at the load balancer gives different numbers, and both are correct for what they see. For APIs, the REST API monitoring guide shows which endpoints to check from outside.

Worked example: an availability SLI from uptime checks

A monitor checks an endpoint every minute for 30 days: 30 × 1,440 = 43,200 checks. 31 checks failed (each confirmed by a second check before it counted). SLI = (43,200 − 31) ÷ 43,200 = 99.928%.

Each failed check stands for about one minute, so this is a time-based SLI: 31 bad minutes out of 43,200. Against a 99.9% SLO the month allowed 43.2 bad minutes, so 72% of the error budget was used. With 5-minute checks the same month would rest on only 8,640 samples, and a short outage between two checks would not be seen at all. Try it on your own endpoint with the free uptime check.

Latency SLIs: a threshold share, not a percentile average

A latency histogram for one day of 1,000,000 requests: 610,000 under 100 ms, 372,000 between 100 and 300 ms, 15,500 between 300 ms and 1 s, and 2,500 above 1 s.

The SLI "share of requests under 300 ms" = (610,000 + 372,000) ÷ 1,000,000 = 98.2%. Against a target of 99% under 300 ms, 10,000 slow requests were allowed and 18,000 happened. The same data says p99 falls somewhere between 300 ms and 1 s, which is true but cannot be added up across days; the ratio can. Percentiles are still the right way to look at a distribution, as on the p95 latency page.

Common mistakes

  • Measuring what is easy. CPU and memory are easy to collect but are not what users experience.
  • Counting health checks and bots. They inflate the denominator with trivially successful requests. Define which events are valid.
  • Ratios without volume. 99% of 12 requests is not the same evidence as 99% of 12 million.
  • Measuring only from inside. A server-side SLI misses DNS, TLS and CDN failures. Pair it with an external check.
  • Changing the definition mid-window. Excluding a class of errors halfway through makes the numbers before and after incomparable. Version the SLI definition and change it at a window boundary.
  • Averaging percentages across services. An endpoint at 99% with a million requests and one at 90% with a thousand do not average to 94.5%. Add up good and valid events first, then divide.

How Vigil handles an SLI

  • Uptime and API checks give an outside availability SLI per monitor (successful checks ÷ all checks), and the SLA report shows it against the target.
  • APM endpoint data gives request-based indicators from inside: error rate, latency histograms and Apdex per endpoint.
  • Triggers can alert on any of these metrics, with a warm-up and a cooldown.

SLI (service level indicator): frequently asked questions

What are the most common SLIs?

Availability (successful requests or checks), latency (the share of requests under a threshold), and for data systems, freshness and correctness.

Should an SLI be a percentage?

Expressing it as good ÷ valid events makes it easy to set targets and compute error budgets, so most teams do.

Where should SLIs be measured?

As close to the user as practical: at the load balancer or edge for request SLIs, plus external synthetic checks for full-path availability.

Vigil by PuzariCloud

Measure it instead of estimating it

Uptime and API checks, heartbeats, status pages, on-call, traces, errors, logs and real user monitoring in one place, with every feature on every plan, including Free.