WIPIVERSE All articles

Service level indicator

A service level indicator (SLI) is a quantifiable measure of service behavior used to assess the reliability, performance, or quality of a system from the perspective of its users. It is a foundational concept in Site Reliability Engineering (SRE) and IT service management, serving as the empirical basis for defining Service Level Objectives (SLOs) and Service Level Agreements (SLAs).

Definition and Purpose

An SLI is a precisely defined metric, typically expressed as a ratio or a percentile, calculated over a specific measurement window. The primary purpose of an SLI is to provide an objective, data-driven representation of the user experience, replacing subjective assessments of system health with measurable data points.

Relationship to SLO and SLA

The SLI is the lowest layer in a standard reliability hierarchy:

  • SLI (Indicator): The raw metric (e.g., "99.9% of HTTP requests returned 2xx in the last 30 days").
  • SLO (Objective): A target value for the SLI (e.g., "SLI ≥ 99.9% per rolling 30 days").
  • SLA (Agreement): A formal contract with external customers specifying consequences (e.g., financial credits) if the SLO is breached.

Common Categories and Examples

Industry practice (notably popularized by Google’s SRE publications) categorizes SLIs into several standard types:

  • Availability (Uptime): The proportion of valid requests served successfully.
    • Example: Ratio of successful HTTP requests (2xx/3xx) to total valid requests.
  • Latency (Performance): The proportion of requests served faster than a defined threshold.
    • Example: 99th percentile (p99) request latency < 200ms.
  • Throughput (Capacity): The proportion of time the system sustains a required request rate.
    • Example: Requests per second (RPS) > 1,000 during peak hours.
  • Durability: The likelihood that data persists over a long period without loss.
    • Example: Annualized probability of data loss < 0.0001%.
  • Correctness (Quality): The proportion of responses that are semantically correct.
    • Example: Percentage of search results returning relevant items.
  • Freshness: The proportion of data updated within a required time window.
    • Example: Percentage of cache entries younger than 5 minutes.

Characteristics of a Good SLI

Effective SLIs generally adhere to the following principles:

  • User-Centric: They measure what the user cares about (symptoms), not internal implementation details (causes).
  • Unambiguous: The calculation method (numerator, denominator, filters, time window, aggregation method) is explicitly documented.
  • Actionable: Changes in the SLI clearly signal whether the system is improving or degrading.
  • Automated: Collection and calculation are performed automatically by monitoring infrastructure (e.g., Prometheus, Datadog, CloudWatch).

Implementation Considerations

  • Measurement Window: SLIs are evaluated over rolling time windows (e.g., 1 hour, 28 days, 30 days) to smooth out transient fluctuations.
  • Aggregation: Percentiles (p50, p95, p99) are preferred over averages for latency SLIs to capture tail-end user experience.
  • Filtering: "Valid" requests must be defined to exclude synthetic traffic, health checks, or client-side errors (4xx) that do not reflect server reliability.
  • Cost: High-cardinality SLIs (e.g., per-customer, per-endpoint) increase monitoring storage and query costs; aggregation strategies must balance granularity with operational expense.

Standards and References

The concept is central to the Site Reliability Engineering framework documented in:

  • Site Reliability Engineering: How Google Runs Production Systems (Beyer et al., 2016).
  • The Site Reliability Workbook (Roth et al., 2018).
  • OpenSLO specification (open standard for SLO/SLI definitions).
  • OpenTelemetry semantic conventions for service-level metrics.
Browse

More topics to explore

    Browse all articles