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_idfrom 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.
More on Grafana
What is Grafana and what is it not?BeginnerWhat is a Grafana datasource and how do you provision one?BeginnerWhat are dashboard variables and what types exist?IntermediateHow do multi-value and "All" variables work in PromQL queries?IntermediateWhat are Grafana's built-in time variables?IntermediateWhat does "dashboards as code" mean and what are the options?Intermediate