Skip to content

Metrics, logs and traces

Pick the right signal for an operational question, alert on symptoms, keep metric cardinality bounded, and budget what traces cost to keep.

25 min7 steps

By the end you can
  • Choose between metrics, logs and traces for a given operational question
  • Alert on user-visible symptoms using the four golden signals rather than on causes
  • Predict how labels multiply metric time series and keep cardinality bounded
  • Explain how trace context propagates across services and why the sampling decision must travel with it
  • Estimate stored trace volume from traffic, sampling rate and span size

Three signals, three different questions

Metrics

  • Is it real, how bad?
  • Cheap aggregates
  • Drive alerts

Logs

  • What happened to this request?
  • Structured, with trace ID
  • Cost per event

Traces

  • Where did the time go?
  • Tree of spans
  • Sampled (Dapper)

Checkout p99 doubled at 14:05. The service calls inventory, pricing, payments and fraud scoring. Which signal tells you which downstream call got slow for the slow requests?

Answer this step to continue.