Skip to main content
Metrics are numeric measurements with timestamps that describe the behavior of your system. Collecting a metric over time produces a time series — the foundation of monitoring and observability. But raw metrics alone don’t tell you when to act. You need to decide which metrics reflect user experience and what thresholds constitute acceptable behavior. The golden signals (Traffic, Errors, Latency, Saturation) give you a framework for what to measure. From those signals you derive SLIs, then set SLOs, and finally (optionally) expose SLAs to customers.
  • If your HTTP error rate is 2%, is that acceptable for your users?
  • If latency reaches 800 ms for some requests, is it urgent enough to wake someone at 3 a.m.?
The answers come from defining SLIs, choosing SLO targets, and declaring SLAs when appropriate.

Service Level Indicators (SLIs)

An SLI (Service Level Indicator) is a user-facing metric that captures the quality of service from the customer’s perspective. SLIs should measure outcomes that matter to users, not internal implementation details. Examples:
  • Error rate as an SLI: percentage of failed requests.
  • Latency as an SLI: percentage of requests that complete under 500 ms.
  • Availability as an SLI: percentage of successful requests over a time window.
A slide titled "Service Level Indicators (SLIs)" showing formulas for Errors SLI (successful requests / total requests ×100%) and Latency SLI (requests under 500ms / total requests ×100%). To the right is a colored bar chart of request latency buckets (50ms, 100ms, 250ms, 500ms, 1s, 2.5s).
Choose SLIs that reflect user experience. Avoid internal-only signals (CPU, pod restarts) unless those directly affect user-visible outcomes.
SLIs are outcome-focused — they measure what users experience. For troubleshooting you may look at pod status or CPU, but those are not SLIs unless they directly degrade user experience. Example Kubernetes output for context:
Are requests meeting the level of service you expect? SLIs answer whether requests are generally fast enough or successful enough for users.

Service Level Objectives (SLOs)

An SLO (Service Level Objective) is a target you set for an SLI. It defines what “healthy” looks like over a defined time window. Example:
  • SLI: percentage of requests under 500 ms
  • SLO: 95% of requests complete under 500 ms over a 24-hour window
SLOs balance user expectations with operational reality. They should be realistic enough to avoid frequent noisy alerts, yet strict enough to surface real problems. Example programmatic check:
Guidelines for choosing SLOs:
  • Avoid extremes: not so strict that minor fluctuations trigger high-priority response, and not so loose that real user pain goes unnoticed.
  • Use a relevant time window (e.g., 24h, 7d, 30d) depending on traffic patterns and business requirements.
  • Consider multiple SLIs (latency, error rate, availability) and prioritize by user impact.

Service Level Agreements (SLAs)

An SLA (Service Level Agreement) is a contractual commitment to customers specifying the level of service and consequences if that level is not met (credits, refunds, penalties).
A slide titled "Service Level Agreements (SLAs)" showing two colored bars: SLA = 99% success rate and Current SLI = 98.1% success rate.
Because SLAs have legal or financial consequences, they should usually be less strict than internal SLOs. That buffer ensures your team gets timely alerts and remediation opportunities before customers experience breaches.
Keep your SLA less strict than your SLOs so internal alerts trigger before customer-facing commitments are at risk. This buffer enables proactive remediation.

How these concepts map to the Golden Signals

Golden signals (Traffic, Errors, Latency, Saturation) are categories to instrument. From those signals:
  • SLIs choose the specific user-facing metric (e.g., 95th percentile latency).
  • SLOs set acceptable thresholds and time windows (e.g., 95% under 500ms over 24h).
  • SLAs are customer-facing guarantees and should include remediation terms.
A slide titled "Golden Signals and SLIs, SLOs, and SLAs" showing the four golden signals—Traffic, Errors, Latency, and Saturation—on the left and three blue bars on the right labeled Service Level Agreements (SLAs), Service Level Objectives (SLOs), and Service Level Indicators (SLIs).

Quick comparison

Monitoring and tooling

You will build queries and dashboards around SLIs and SLOs. Common tools:
  • Prometheus for collecting and querying metrics
  • Grafana for visualization and alerting
These tools help you implement SLIs (via metrics), compute SLO compliance, and trigger alerts long before SLAs are violated.
A slide titled "Up Next: Prometheus and Grafana Deep Dives" showing the Grafana logo on the left and the Prometheus logo on the right. The image also includes a small "© Copyright KodeKloud" notice.

Watch Video