How do Grafana correlations link metrics, logs and traces?

AdvancedConceptGrafana
Answer
  • Exemplars on Prometheus panels link to the Tempo/Jaeger datasource via exemplarTraceIdDestinations.
  • Derived fields on Loki extract trace_id from log lines with a regex and link to Tempo.
  • Trace to logs / trace to metrics settings on Tempo build Loki or Prometheus queries from span attributes (service name, pod).
  • Correlations (a Grafana feature) define generic links between any datasources.

Configured right, an engineer goes from a latency spike to a trace to the exact log lines in three clicks.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Grafana