Observability Fundamentals
The three main telemetry signals, what each is good for, and the RED and USE methods for deciding what to measure.
Intermediate · about 3 hours · difficulty 2/5
Learn first: Performance and Troubleshooting, HTTP and HTTPS
Monitoring tells you that something is wrong; observability is the ability to ask new questions of your system and find out why, without shipping new code. Both rest on telemetry.
The signals
- Metrics: numeric time series (request rate, latency percentiles, CPU). Cheap to store and ideal for dashboards and alerts.
- Logs: timestamped event records. Rich detail for debugging a specific failure. Emit structured logs (JSON with consistent fields), not free text.
- Traces: the path of one request across services, made of timed spans. Show where latency and errors come from in distributed systems.
- Profiles and events (deploys, config changes) are increasingly treated as signals too.
Link them: put the trace ID in every log line and attach exemplars to metrics.
What to measure
- RED for request-driven services: Rate, Errors, Duration.
- USE for resources: Utilisation, Saturation, Errors (CPU, memory, disk, network, connection pools).
- Google's four golden signals: latency, traffic, errors, saturation.
- Business signals: sign-ups, checkouts, jobs processed.
Cardinality and cost
Every unique combination of metric labels is a new time series. Labels such as user ID or full URL explode storage and cost. Keep high-cardinality detail in logs and traces, and sample traces sensibly.
Pull vs push
Prometheus scrapes targets; many SaaS agents and OpenTelemetry push to collectors. Both work; know which your stack uses when debugging missing data.
Good enough to move on: you can say which signal answers a given question, list the RED metrics for an API and the USE metrics for a database host, and explain why user ID should not be a metric label.
Key concepts
- Monitoring vs observability
- Metrics, logs and traces
- Structured logging
- RED and USE methods
- Four golden signals
- Cardinality and cost
- Correlating signals with trace IDs
Mini project
For a service you run, write a telemetry plan: the RED metrics with label sets, the log fields every line must carry, and three questions you want traces to answer.
Check yourself
Latency alerts fire but CPU and memory look fine. Which signal would you look at next, and what would you expect to find?
Free resources
- Monitoring Distributed Systems (SRE Book) (Google SRE)
- OpenTelemetry: observability primer (OpenTelemetry)