What are the four golden signals of monitoring?
BeginnerConceptReliability, monitoring & incidents
Answer
In one line: The four golden signals, from Google's SRE book, are latency, traffic, errors and saturation — if you can only monitor four things about a user-facing system, monitor these.
1. Latency — how long requests take
- Measure percentiles (p50, p95, p99), not just averages — the average hides the slow requests that annoy users.
- Track successful and failed request latency separately (fast errors can make latency look good).
- Example: p99 checkout latency = 1.2 s.
2. Traffic — how much demand there is
- Requests per second, transactions per minute, active users, messages consumed.
- Helps you understand load and capacity, and spot sudden drops (a drop to zero can mean users can't reach you).
3. Errors — how many requests fail
- HTTP 5xx rate, failed jobs, exceptions — and also "wrong" responses (for example a 200 with an error message inside).
- Example: 0.4% of API requests returning 5xx.
4. Saturation — how "full" the system is
- CPU, memory, disk, connection pools, thread pools, queue length.
- Predicts problems before they happen: "the database connection pool is 95% used".
Example Prometheus queries:
# Error rate
sum(rate(http_requests_total{status=~"5.."}[5m])) / sum(rate(http_requests_total[5m]))
# p95 latency
histogram_quantile(0.95, sum(rate(http_request_duration_seconds_bucket[5m])) by (le))
Related methods:
- RED (for services): Rate, Errors, Duration.
- USE (for resources like CPU, disks): Utilisation, Saturation, Errors.
Tip for interviews: name all four, explain why percentiles matter for latency, and say what dashboard you built with them.
More on Reliability, monitoring & incidents
What are SLAs, SLOs and SLIs?BeginnerWhat is an error budget, and how is it used?IntermediateWhat is the difference between metrics, logs and traces?BeginnerWhat makes a good alert? How do you avoid alert fatigue?BeginnerWhat is an incident, and what is incident management?BeginnerWhat are MTTR, MTTD, MTBF and MTTF?Beginner