Observability & OpenTelemetry
Metrics versus logs versus traces
Metrics, logs and traces answer complementary questions when investigating a service.
What you will be able to do
- Explain the worked example and its assumptions
- Choose the next evidence to inspect
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A command to try yourself
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Observability & OpenTelemetry
- Alertmanager inhibitionBeginner · 4 min
Alertmanager inhibition suppresses alerts when another alert is firing.
- for durationBeginner · 4 min
for duration requires an alert condition to persist.
- RED metricsIntermediate · 4 min
RED measures rate, errors and duration for each request-driven service and route, and duration works best as a histogram because averages hide the slow requests users…
- USE metricsIntermediate · 4 min
The USE method checks utilization, saturation and errors for each resource on a host, and saturation shows the waiting that a moderate utilization figure can hide.
- Prometheus scrape modelIntermediate · 4 min
Prometheus pulls metrics from each target on a scrape interval and records a failed scrape as up equal to 0, so gaps in a graph often come from scrape timeouts rather…
- PromQL rateIntermediate · 4 min
rate() turns a counter into a per-second increase over a window and corrects for counter resets, so the window should be longer than two scrape intervals and never…