Skip to content

SLI (Service Level Indicator)

In one line

SLI is the measurement of service health (e.g., success rate, latency p99) — the raw data that SLOs are evaluated against.

In simple words

A Service Level Indicator (SLI) is a quantitative measurement of your service health. It is the raw number you measure and compare against your SLO target.

Common SLIs: availability (success/total), latency (p99), throughput, error rate, saturation. An SLI has a numerator (good events), denominator (all events), and measurement window.

SLI → SLO → SLA, from measurement to target to contract.

Example

javascript
async function availabilitySLI() {
  const success = await prometheus.query('sum(rate(http_requests_total{status=~"2..|3.."}[5m]))');
  const total = await prometheus.query('sum(rate(http_requests_total[5m]))');
  return success / total;  // e.g., 0.9995
}

The SLI is the measured value (e.g., 99.95% availability). You compare it against the SLO target (99.9%) to determine if the service is healthy.

Common confusions

  • Confused with: SLO

    The difference: SLI is the measurement (actual value, e.g., 99.95%). SLO is the target (desired value, e.g., 99.9%). SLI is what you measure; SLO is what you aim for.

Related terms

Related Resources

Related Lessons

Decode error messages

Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.

View errors

← Back to glossary