DEVOPS / A CONCEPT NOTE

SLI / SLO / SLA

measuring 'is it working?'

~70 sec read

Overview · mechanism
pitfall · examples

01 / THE SHORT VERSION

The idea in a few sentences.

SLI (Indicator) is the actual metric (e.g. latency). SLO (Objective) is the target goal (e.g. 99% under 200ms). SLA (Agreement) is the legal promise to customers with penalties.

02 / FOLLOW THE MECHANISM

How measurement to agreement flows

  1. SLI metric

    system logs response times (e.g., this request took 150ms).

  2. SLO target

    monitors compliance over time (e.g., target 99.9% requests are < 200ms).

  3. Error Budget

    calculates permitted failures. Violating SLO freezes new releases to focus on stability.

  4. SLA penalty

    if SLO breach impacts business legal SLA limits, client receives refunds.

04 / COMMAND NOTES

Read the command, then the result.

Inspect the flags and arguments before trying an example. Snippets can need local setup, replacement values, or resources in your own environment.

EXAMPLE 01 · REFERENCE

test alert metrics calculations syntax

promtool check metrics

Explore command anatomy in the CLI lab