โ† Tutorials
๐Ÿ“ก Monitoring

The four golden signals: build a useful service dashboard

Measure latency, traffic, errors and saturation with clear boundaries. Avoid misleading percentiles, retry counts and fixed capacity thresholds.

By The Downtime ยท Jul 15, 2026 ยท 1:30 PM ยทUpdated 3 weeks ago
The four golden signals: build a useful service dashboard

The four golden signals are latency, traffic, errors and saturation. They describe how a service responds, how much work reaches it, which requests fail and where capacity is running out. Google's SRE monitoring chapter recommends them as a starting point for user-facing services.

Start with one important operation, such as submitting an order. Define what counts as a successful result, where you measure it and which requests belong in the calculation. A dashboard can show four healthy graphs while measuring the wrong part of that operation.

Choose the measurement boundary

An HTTP server timer measures work inside the server. A client timer includes a different path. Neither is automatically a measure of how quickly a browser becomes usable. OpenTelemetry defines its HTTP server request duration as a histogram measured in seconds and distinguishes it from client request duration. Record the boundary and unit beside each graph. See the HTTP metric conventions.

For an API, this is a useful first dashboard:

Signal Measure at the chosen boundary
Latency Request duration, split by outcome
Traffic Completed requests per second; requests still active
Errors Failed requests and total eligible requests
Saturation Resource limits, waiting work and wait time

Keep the route and region filters consistent across panels. Use route templates such as /orders/{id} instead of individual order URLs. OpenTelemetry requires a route attribute with a bounded set of values; a raw URI path is not a substitute. A request ID belongs in a trace or an approved log field, not a metric label. Each distinct label combination creates another time series. Prometheus explains that cost.

Latency needs a distribution

Separate successful and failed requests. A fast error can pull an overall average down while the service becomes less useful. Keep failed-request duration visible too: a timeout and an immediate rejection have different consequences.

Percentiles describe positions in the observed distribution. A p95 value describes roughly the point below which 95% of the observations fall. It leaves the slowest 5% largely unexplained. Show an observation count and a time window with every percentile so a quiet endpoint doesn't look as well sampled as a busy one.

Do not average the p95 values from several instances to obtain a service-wide p95. Aggregate compatible histogram data first, then calculate the percentile. Prometheus documents both this aggregation rule and the approximation introduced by histogram buckets. Wide buckets can make a latency estimate too coarse for a decision near your threshold. Histograms and summaries covers the tradeoffs.

If the service objective is a fraction of requests below a deadline, measure that fraction directly. For a classic histogram, put a bucket boundary at the deadline. This avoids estimating the fraction from a broad bucket that straddles it.

Traffic is more than completed work

Completed requests per second is useful because it lines up with the errors and durations recorded at completion. Keep a separate measure of active work. If requests stall, completions can fall while outstanding work grows. Prometheus recommends consistent counting boundaries and documents instrumentation for online services, processing pipelines and batch jobs.

For a queue, record incoming work and finished work separately. Include backlog age or a timestamped heartbeat that passes through the pipeline. Counting messages consumed alone can hide work that repeatedly fails or never reaches the last stage. For a scheduled batch job, the time of its last successful run may matter more than a requests-per-second panel.

Retries also change the meaning of traffic. One user operation can generate several backend attempts. An increase in attempts may reflect a failing dependency rather than more customers. Count attempts where they happen and retain an operation-level outcome at the caller. AWS explains how retries can amplify load during an incident in timeouts, retries and backoff.

A drop in server traffic needs investigation. It could mean lower demand, a stalled service or requests failing before they reach that server. Compare it with client measurements and an external check of the same path.

Define errors before dividing

Write the success rule in terms of the operation. A 200 response with the wrong result can fail that rule. An expected validation rejection can be handled correctly. Decide which events are eligible and how cancellations, timeouts and retries count before using the ratio as an SLI, a service-level indicator.

For a combined correctness-and-latency SLI, count a request as bad once if it fails either condition. Adding the failure count to the slow-request count can double-count requests that are both slow and failed. Keep separate diagnostic counters if they help explain the result.

Always display the failed count and total count beside the ratio. One failure in ten requests is 10%; one failure in ten thousand is 0.01%. Those hypothetical calculations describe different volumes of evidence. If there are no eligible requests, the ratio is undefined. Missing observations also need their own state. Neither case establishes that the service is healthy.

Choose alert windows and thresholds from the service objective and the response you can take. Google's SLO alerting workbook covers error-budget consumption and the difficulty of alerting on low-traffic services. Our SLO guide explains how to define the eligible population.

Find the resource that makes requests wait

A single CPU percentage cannot describe all capacity limits. A service may wait for a database connection while its CPU has spare capacity. Check the resource that constrains the operation.

For a connection pool, inspect its configured maximum, connections in use, pending requests and acquisition timeouts. OpenTelemetry's database client conventions define pool metrics for usage, pending requests, wait time and timeouts. The pool metrics are marked Development, so check the names and support in your instrumentation version before building queries around them.

At the host level, Linux Pressure Stall Information reports time that tasks stall because of CPU, memory or I/O pressure. This helps distinguish resource occupancy from work being delayed. Availability depends on kernel configuration and the permissions your collector has.

There is no universal 80% warning or 90% paging threshold. Choose limits from observed failure behavior and the time needed to respond. Test the workload mix and reduced-capacity conditions you expect to run. Saturation measurements can give advance warning, but a sudden failure may leave no warning window.

Read an incident across the panels

The following numbers are hypothetical, not measurements from Pingy or a benchmark. They describe two five-minute windows for the same API route. Each completed request has one recorded outcome, so failed requests are a subset of completed requests. Active requests and pool waiters are snapshots at each window's end.

Measurement Before During
Completed requests 30,000 24,000
Failed requests 30 1,200
Successful p95 180 ms 1,400 ms
Active requests 20 600
Pool waiters 0 85

Completions fell from 100 to 80 per second. The failure ratio rose from 0.1% to 5%. Successful requests also slowed, and work accumulated at the pool. These observations justify inspecting connection wait time, pool limits and database operations next. They do not prove that the pool is too small: slow queries could be holding its existing connections longer.

Increasing the pool size without checking database capacity could add more competing work. Compare application traces with database timings, check recent changes and test a bounded mitigation. Afterward, verify that waiting work drains and operation outcomes recover. A fall in CPU alone would not establish recovery in this example.

Check what the dashboard cannot see

An external probe tests a selected URL from a selected location. It can expose a reachability failure that the application never receives, but it does not measure all user traffic or inspect internal pool pressure. Pair it with service instrumentation and, where needed, a browser test of the operation. Our synthetic monitoring and RUM guide explains those coverage limits.

Before relying on the dashboard, stop telemetry in a test environment and confirm that stale data becomes visible. Then introduce a known request failure and a bounded slowdown. Check the counters, duration distribution and alert delivery against those events. Put the expected observations and the first safe response in the runbook beside the dashboard link.

๐Ÿ’ฌ Comments (0)

No comments yet โ€” be the first to weigh in.

Join the conversation.