Interview Prep/Monitoring & Observability/Prometheus and PromQL at Scale

How do exemplars help you jump from a slow-latency graph to a specific trace?

AdvancedScenarioPrometheus and PromQL at Scale
Answer

Situation read → A p99 spike tells you "something is slow" but not which request. Exemplars attach a trace ID to a specific histogram observation.

What I'd do →

  1. Instrument the app so histogram observations include the trace ID (OpenTelemetry or Prometheus client libraries with exemplar support). Expose in OpenMetrics format.
  2. Start Prometheus with --enable-feature=exemplar-storage and scrape using OpenMetrics.
  3. In Grafana, set the Prometheus data source's exemplar link to the Tempo data source using the trace_id label.
  4. In a latency panel, enable Exemplars. Click a dot to open the trace.

Why → You move from aggregate to individual evidence in one click, shrinking the diagnosis time.

Interview tip → Exemplars are sparse samples, not full coverage. They are pointers, not a replacement for tracing.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Prometheus and PromQL at Scale