liveBook · Manning

Service-level indicator

As explained in Automating API Delivery

A service level indicator is a quantitative measure of an aspect of a service's health or performance.

A service-level indicator (SLI) is a quantitative measure of an aspect of a service’s health or performance. Latency, server error rate, throughput, and uptime can serve as SLIs. Teams agree on these measures to determine how well a service is performing and use them to guide monitoring and alerting. section 11.2 section 11.2.5

Separate the measurement from the policy built around it:

  • An SLI measures an aspect of service health, such as request latency or server error rate. section 11.2.5
  • A service-level objective (SLO) sets the target or threshold for an SLI. section 11.2.5
  • A service-level agreement (SLA) formalizes commitments to customers about meeting SLI targets. section 11.2.5
  • An error budget describes the server errors permitted during a period before users become dissatisfied; detailed treatment is deferred. section 11.2.5

Latency SLI and SLO

Measure endpoint latency as the SLI, then define an SLO requiring latency of 500 milliseconds or less for 99% of requests over seven days. The SLI is the observed measure; the SLO is the target applied to it. section 11.2.5

Choose SLIs from the customer’s perspective, then use them as the basis for monitoring and alerts. Evolve them as the API product and user experience change. Avoid collecting metrics without a clear strategy: infrastructure metrics describe resources such as CPU, memory, queues, and database connections, whereas SLIs describe individual services. section 11.2 section 11.2.5

How Automating API Delivery covers it

How deep it goes
Defines quantitative measures and distinguishes SLIs from SLOs and SLAs, while deferring detailed error-budget treatment.
Examples
Uses latency, server error rate, throughput, uptime, and a 500-millisecond latency target for 99% of seven-day requests.
What it assumes
Assumes basic monitoring awareness while distinguishing infrastructure metrics from service-level measures.
What you can do after
Apply SLIs to choose customer-relevant monitoring measures and establish the basis for API alerts.
How it connects
Connects service-level indicators with monitoring, latency, error rate, throughput, uptime, SLOs, SLAs, and error budgets.

Also explained in

Compare how 3 books explain service-level indicator →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Automating API Delivery. The section links point to the parts of the book it draws on.