Label Tempo's exemplars trace_id so they link to the trace

Tempo's metrics-generator defaults the exemplar label to traceID, which
the Prometheus datasource's exemplarTraceIdDestinations (trace_id) never
matched: exemplars rendered in Grafana but didn't link to Tempo. Set
trace_id_label_name in the overrides so trace_id is the one correlation
key everywhere.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Movses Aslanyan
2026-10-24 22:40:58 +03:30
co-authored by Claude Opus 5.5
parent d54ea2ba41
commit 88700c000d
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -45,3 +45,8 @@ overrides:
defaults:
metrics_generator:
processors: [service-graphs, span-metrics, local-blocks]
# Not in the Ansible template. Without it the generator labels exemplars
# traceID (the code default; the docs wrongly say trace_id), which the
# Prometheus datasource's exemplarTraceIdDestinations (trace_id) never
# matches, so exemplars render but don't link to Tempo.
trace_id_label_name: trace_id