Reliability metrics provide a quantitative way to define, measure, and communicate the reliability of a service. They form the foundation for setting expectations with customers and making data-driven decisions about reliability investments.

Core Concepts

SLI (Service Level Indicator)

A quantitative measure of some aspect of the service level being provided. SLIs are the raw metrics that describe how your service is performing.

Good SLIs are:

  • Directly tied to user experience
  • Measurable and objective
  • Simple to understand

Common SLI categories:

  • Availability — Proportion of time the service is operational (time-based) or proportion of valid requests that succeed (request-based; preferred for request-driven services)
  • Latency — Proportion of requests served faster than a defined threshold (preferred over raw percentiles for SLIs)
  • Throughput — Rate of successful requests processed
  • Error rate — Proportion of requests that fail
  • Durability — Likelihood that data will be retained over time
  • Freshness — How up-to-date the data is

SLO (Service Level Objective)

A target value or range for a service level measured by an SLI. SLOs define what “good enough” looks like.

Example SLOs:

  • 99.95% of requests return successfully (availability)
  • 95% of requests complete in under 200ms (latency)
  • 99.99% of stored objects are retrievable (durability)

SLA (Service Level Agreement)

A contract between a service provider and customer that specifies consequences (usually financial) if agreed targets are not met. Internal SLOs should be stricter than external SLAs to provide an operational buffer before customer penalties trigger.

Relationship: SLIs measure → SLOs target → SLAs promise

SLI: "The proportion of successful HTTP requests"
SLO: "99.95% of requests will succeed over a rolling 30-day window"
SLA: "If monthly availability drops below 99.9%, customers receive service credits"

Choosing Good SLIs

The User Journey Approach

Start with critical user journeys and ask: “What does the user care about?”

User JourneyWhat Users Care AboutSLI
Loading a pageIt loads quicklyProportion of requests faster than threshold (e.g., < 200ms)
Submitting a formIt succeedsSuccess rate
Uploading a fileIt doesn’t get lostDurability
Viewing a dashboardData is currentFreshness

SLI Specification vs Implementation

  • Specification — What you want to measure (e.g., “user-perceived latency”)
  • Implementation — How you actually measure it (e.g., “server-side request duration from logs”)

Be aware of the gap between these. Server-side metrics miss client-side rendering time, network latency, etc. Measure as close to the user as possible.

Common SLI Patterns

Request-driven services (APIs, web servers):

  • Availability (request-based): successful requests / total valid requests (preferred over time-based uptime probes for capturing real user impact)
  • Latency (threshold-ratio): requests faster than threshold / total valid requests

Avoid using raw percentiles (p95, p99) directly as latency SLIs: pre-computed percentiles cannot be aggregated across instances and do not map cleanly to ratio-based error budgets. Use threshold-ratio SLIs for SLOs and reserve percentiles for diagnostic dashboards.

Pipeline/batch systems:

  • Freshness: time since last successful run
  • Coverage: records processed successfully / total records

Storage systems:

  • Durability: successful reads of previously written data
  • Throughput: bytes read/written per second

Setting SLOs

Principles

  1. Start with user expectations — What do users actually need?
  2. Be achievable — Set targets you can realistically meet
  3. Leave room for error — Don’t set SLOs at 100%
  4. Iterate — Refine SLOs based on data and feedback

The “Nines” of Availability

AvailabilityDowntime per yearDowntime per month (365/12 d)Downtime per week
99% (two nines)3.65 days7.3 hours1.68 hours
99.9% (three nines)8.76 hours43.8 minutes10.1 minutes
99.95%4.38 hours21.9 minutes5.04 minutes
99.99% (four nines)52.6 minutes4.38 minutes1.01 minutes
99.999% (five nines)5.26 minutes26.3 seconds6.05 seconds

Monthly figures above assume an average month ( days). A 30-day rolling window yields a slightly smaller budget — for example, 99.9% over 30 days equals 43.2 minutes rather than 43.8 minutes. Each additional “nine” is roughly 10x harder and more expensive to achieve.

Composite Availability and MTBF/MTTR

When a service relies on multiple components, overall availability depends on whether dependencies are arranged in series or in parallel (assuming independent failures).

Series (hard dependencies): Every component must be available, so availability compounds downwards:

For example, two dependencies in series yield .

Parallel (redundant components): Only one path needs to remain operational:

For example, two independent paths in parallel yield .

Time-based availability can also be expressed in terms of Mean Time Between Failures (MTBF) and Mean Time to Repair/Restore (MTTR):

Improving availability therefore comes from either reducing failure frequency (increasing MTBF) or recovering faster (reducing MTTR).

SLO Windows

  • Rolling window — e.g., “99.9% over the past 30 days” (43.2 minutes of error budget) — provides continuous feedback
  • Calendar window — e.g., “99.9% per calendar month” (43.8 minutes on average across a 365/12-day month, or 40.3–44.6 minutes depending on month length) — aligns with billing and reporting cycles

Rolling windows are generally preferred for operational decisions; calendar windows for business reporting.

Error Budgets

An error budget is the inverse of your SLO — the amount of unreliability you’re allowed.

If SLO = 99.9% availability
Error budget = 0.1% = 43.2 minutes per 30-day rolling window (43.8 minutes per average 365/12-day month)

Using Error Budgets

Error budgets create a shared framework for balancing reliability and velocity:

Budget StatusAction
Budget healthyShip features, take calculated risks, run experiments
Budget depletingSlow down, increase testing, review recent changes
Budget exhaustedFreeze feature releases, focus entirely on reliability

Error Budget Policies

Document explicit policies for what happens as budget is consumed:

  • At 50% consumed: Review recent incidents, increase monitoring
  • At 75% consumed: Require additional review for risky changes
  • At 100% consumed: Halt non-critical deployments until budget recovers

Beyond DORA: Expanding Your Metrics

DORA metrics measure software delivery performance across five metrics (three throughput metrics and two instability metrics, expanded from the original four). Reliability metrics complement DORA by measuring operational outcomes.

DORA MetricDimensionReliability Counterpart
Deployment FrequencyThroughputDeployment impact on error budget
Change Lead TimeThroughputTime to deploy reliability fixes
Failed Deployment Recovery TimeThroughputTime to restore SLO compliance after a failed release (formerly Mean Time to Recovery)
Change Fail RateInstabilityError budget consumption from deployments
Deployment Rework RateInstabilityProportion of unplanned deployments made in response to production incidents

Additional Operational Metrics

Toil metrics:

  • Time spent on manual, repetitive operational work
  • Ratio of toil to engineering work
  • Trend over time (should decrease)

On-call health:

  • Pages per on-call shift
  • Out-of-hours pages
  • False positive rate
  • Time to acknowledge/resolve

Incident metrics:

  • Incidents per service/team
  • Mean time to detect (MTTD)
  • Mean time to mitigate (MTTM)
  • Mean time to restore/recover/resolve/repair (MTTR — overloaded across organisations, so explicitly specify whether you mean Restore service, Recover to full health, Resolve underlying causes, or Repair a failed component)
  • Incident recurrence rate

Implementing SLOs

Step 1: Choose What to Measure

  • Identify 3-5 critical user journeys
  • Define SLIs for each journey
  • Start simple — you can add complexity later

Step 2: Collect Data

  • Instrument your services to emit the required metrics
  • Measure at the edge where possible (load balancer, CDN)
  • Store metrics with sufficient granularity and retention

Step 3: Set Initial Targets

  • Analyse historical data to understand current performance
  • Set SLOs slightly below current performance initially
  • Avoid “aspirational” SLOs that you can’t meet

Step 4: Alert on SLO Burn Rate

Rather than alerting on instantaneous spikes (noisy) or single long-window averages (slow to clear), use the Google SRE Workbook’s multi-window, multi-burn-rate pattern. A burn rate of consumes 100% of the error budget over the full SLO window (e.g., 30 days). Each alert pairs a long window (confirming meaningful budget spend) with a short window (1/12th of the long window, confirming the issue is still active so alerts resolve promptly once mitigated):

SeverityBurn Rate30-Day Budget ConsumedLong WindowShort WindowAction
Fast burn2% (in 1 hour)1h5mPage immediately
Moderate burn5% (in 6 hours)6h30mPage
Slow burn10% (in 3 days)3d6hTicket (business hours)

Avoid alerting within hours at burn — transient blips easily exceed over short intervals and create alert fatigue.

Example PromQL alerts (99.9% availability SLO, error budget ratio 0.001):

# Fast burn (page): 14.4x over 1h AND 5m (2% of 30-day budget)
(
  sum(rate(http_requests_total{status=~"5.."}[1h])) / sum(rate(http_requests_total[1h])) > (14.4 * 0.001)
)
and
(
  sum(rate(http_requests_total{status=~"5.."}[5m])) / sum(rate(http_requests_total[5m])) > (14.4 * 0.001)
)
 
# Moderate burn (page): 6x over 6h AND 30m (5% of 30-day budget)
(
  sum(rate(http_requests_total{status=~"5.."}[6h])) / sum(rate(http_requests_total[6h])) > (6 * 0.001)
)
and
(
  sum(rate(http_requests_total{status=~"5.."}[30m])) / sum(rate(http_requests_total[30m])) > (6 * 0.001)
)
 
# Slow burn (ticket): 1x over 3d AND 6h (10% of 30-day budget)
(
  sum(rate(http_requests_total{status=~"5.."}[3d])) / sum(rate(http_requests_total[3d])) > (1 * 0.001)
)
and
(
  sum(rate(http_requests_total{status=~"5.."}[6h])) / sum(rate(http_requests_total[6h])) > (1 * 0.001)
)

This approach reduces alert noise while catching both acute outages and chronic degradation.

Step 5: Review and Iterate

  • Review SLO performance monthly or quarterly
  • Adjust targets based on data and changing requirements
  • Involve stakeholders in SLO reviews

Common Pitfalls

  • Too many SLOs — Start with 1-3 per service; more creates confusion
  • SLOs at 100% — Impossible to achieve; leaves no room for error budgets
  • Measuring the wrong thing — Server uptime ≠ user experience
  • No error budget policy — Without consequences, SLOs are just numbers
  • Set and forget — SLOs need regular review and adjustment

Tools