Use it to build the first dashboard and alerts for a service.
The Four Golden Signals
The four golden signals (Google SRE) are latency, traffic, errors and saturation — the minimum to monitor for any user-facing service.
1. Traffic: sum(rate(http_requests_total[5m])).
2. Errors: share of 5xx.
3. Latency: histogram_quantile(0.99, sum by (le)(rate(http_request_duration_seconds_bucket[5m]))).
4. Saturation: queue depth, CPU, connection pool.
5. Dashboard with all four.
requests → traffic, errors, latency; resources → saturation
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 How to verify Verify boundary
Compare the service's dashboard with a known incident and check the signals showed it. Alert on error rate and latency rather than on CPU alone.
Step 2 Common failures Narrow the fault
Averages hide slow outliers. Counting errors without counting traffic makes rates impossible. Measuring latency only on successful requests hides fast failures.
Measure latency of successful and failed requests separately. Saturation is the resource closest to its limit (queue, CPU, connections).
sum(rate(http_requests_total[5m]))— first check for this topiccurl -s localhost:9090/-/ready— Prometheus readycurl -s 'localhost:9090/api/v1/query?query=up'— scrape targets up/downpromtool check config prometheus.yml— config valid
ReferenceWhat it is1 section · depth on demand
How it works
Request-driven services expose these signals at the edge (load balancer) and inside (application). RED (rate, errors, duration) is a similar method for services; USE (utilisation, saturation, errors) applies to resources.
ReferenceImportant terms & boundaries3 sections · depth on demand
Golden signals per service
| Signal | Example metric (HTTP) |
|---|---|
| Latency | p50/p95/p99 request duration, separately for errors |
| Traffic | Requests per second |
| Errors | 5xx rate, failed requests / total |
| Saturation | CPU, memory, queue length, connection pool usage |
histogram_quantile(0.95, sum by (le) (rate(http_request_duration_seconds_bucket[5m])))
sum(rate(http_requests_total{code=~"5.."}[5m])) / sum(rate(http_requests_total[5m]))
Related methods: RED (rate, errors, duration) for services, USE (utilisation, saturation, errors) for resources.
In depth
The four signals in PromQL (HTTP service)
# Traffic: requests per second
sum(rate(http_server_requests_total{service="checkout"}[5m]))
# Errors: share of 5xx
sum(rate(http_server_requests_total{service="checkout",code=~"5.."}[5m]))
/ sum(rate(http_server_requests_total{service="checkout"}[5m]))
# Latency: p99 from a histogram, successful requests only
histogram_quantile(0.99,
sum by (le) (rate(http_server_request_duration_seconds_bucket{service="checkout",code!~"5.."}[5m])))
# Saturation: how full the most constrained resource is (example: worker pool)
max(app_worker_pool_busy / app_worker_pool_size)
Why each detail matters
- Latency of errors separately: a fast
500lowers average latency and makes a broken service look quick. - Percentiles, not averages: an average of 120 ms can hide 2 % of requests taking 5 s.
- Errors include wrong answers: a
200with an error page, or a response slower than the promise, can be counted as an error in the SLI. - Saturation predicts: queue length, connection pool use and memory headroom show trouble before latency rises.
Related methods
| Method | For | Signals |
|---|---|---|
| RED | Request-driven services | Rate, Errors, Duration |
| USE | Resources (CPU, disk, NIC) | Utilisation, Saturation, Errors |
| Golden signals | Services from the user's side | Latency, Traffic, Errors, Saturation |
Measure at the edge (load balancer/ingress) as well as inside the service: the edge also sees requests the service never received.
Common mistakes
- Ignoring saturation.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.