Making Non-Functional Requirements Measurable: SLIs, SLOs and SLAs

Turn NFRs into SLIs, SLOs and SLAs. Learn the differences, how to choose good indicators, set targets, use error budgets and alert on burn rate.

Published November 27, 2026

Writing "the system must be reliable" in a requirements document achieves nothing. Site Reliability Engineering gives us a precise vocabulary for making reliability and performance requirements measurable and enforceable: SLIs (what you measure), SLOs (the target), SLAs (the contractual promise) and error budgets (how much failure you can afford). This article shows how to use them.

The concept

A Service Level Indicator (SLI) is a carefully defined measurement of user experience, usually a ratio of good events to total events: the proportion of HTTP requests that succeeded, or the proportion served faster than 300 ms. A Service Level Objective (SLO) is the target for that indicator over a window: 99.9% of requests succeed over 30 days.

A Service Level Agreement (SLA) is a contract with customers that specifies consequences, typically service credits, if a level is not met. SLAs should be looser than internal SLOs, so you notice and fix problems before they cost money. The error budget is simply 100% minus the SLO: with a 99.9% SLO you may fail 0.1% of requests. Spending that budget on risky releases is fine; exhausting it means slowing down and prioritising reliability work.

How the terms relate

SLAcontract: 99.5%, credits if missedSLOinternal target: 99.9% over 30 daysSLImeasurement: good requests / total requestsTelemetryload balancer logs, metrics, traces
Each layer builds on the one below.

SLI, SLO, error budget and SLA

TermQuestionExampleAudience
SLIWhat do we measure?Successful checkout requests / all checkout requestsEngineers
SLOWhat is good enough?99.9% over a rolling 28 daysEngineering + product
Error budgetHow much failure can we afford?0.1% ≈ 40 min of full outage per 28 daysEngineering + product
SLAWhat do we promise legally?99.5% monthly or 10% creditCustomers, legal

Error budget in practice

Budget at start100%After bad deploy62% leftAfter DB incident18% leftFreeze threshold10%
An error budget being consumed over a 28-day window.

Choosing good SLIs

Measure as close to the user as possible (at the load balancer or in the client, not inside one microservice). Prefer ratios of good to total events over averages, because averages hide the slow tail. Cover the few journeys that matter most (login, search, checkout) rather than every endpoint.

  • Availability SLI: requests with status < 500 / all valid requests
  • Latency SLI: requests faster than threshold / all requests (use two thresholds, e.g. 300 ms and 1 s)
  • Freshness SLI: records updated within 10 min / all records (for pipelines)
  • Correctness SLI: jobs producing valid output / all jobs

Practical examples

Availability SLI in PromQL

Ratio of non-5xx responses over 28 days.

sum(rate(http_requests_total{job="checkout",code!~"5.."}[28d]))
/
sum(rate(http_requests_total{job="checkout"}[28d]))

Latency SLI: share of requests under 300 ms

Uses histogram buckets instead of averages.

sum(rate(http_request_duration_seconds_bucket{job="checkout",le="0.3"}[5m]))
/
sum(rate(http_request_duration_seconds_count{job="checkout"}[5m]))

Burn-rate alert

Page when the budget is being spent 14.4x faster than sustainable (2% of a 30-day budget in 1 hour).

- alert: CheckoutErrorBudgetBurn
  expr: |
    (1 - (sum(rate(http_requests_total{job="checkout",code!~"5.."}[1h]))
          / sum(rate(http_requests_total{job="checkout"}[1h])))) > (14.4 * 0.001)
    and
    (1 - (sum(rate(http_requests_total{job="checkout",code!~"5.."}[5m]))
          / sum(rate(http_requests_total{job="checkout"}[5m])))) > (14.4 * 0.001)
  labels: { severity: page }

Common mistakes

  • Setting SLOs at 100%: it leaves no room for change and is impossible to meet.
  • Measuring SLIs inside the service, missing failures at the load balancer, DNS or client.
  • Using average latency, which hides the slow requests users actually notice.
  • Making the SLA as strict as the SLO, leaving no safety margin.
  • Defining SLOs and then ignoring the error budget when it runs out.

Key takeaways

  • SLIs measure user experience as good events over total events.
  • SLOs set targets; SLAs are looser contractual promises.
  • The error budget (100% − SLO) balances release speed against reliability.
  • Alert on burn rate, not on every individual error.

FAQ

How do I choose an SLO target?

Start from current performance and user expectations. If users are happy at 99.7% today, an SLO of 99.9% may be unnecessary; pick what keeps users satisfied, not the highest number.

Can internal services have SLOs?

Yes. Internal platforms and APIs benefit from SLOs so dependent teams know what to design for.

What window should an SLO use?

A rolling 28 or 30 days is common. It smooths out daily noise while still reacting to sustained problems.

More Architecture articles