Configure Grafana Tempo to ingest OTLP traces, enable TraceQL metrics, and link Tempo to a Loki datasource for trace-to-log correlation

domain: grafana.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Configure the Tempo distributor to accept OTLP gRPC and HTTP in the tempo.yaml receivers block
  2. Enable the metrics-generator component in Tempo config with remote_write pointing at Prometheus or Mimir to produce span RED metrics
  3. In Grafana, add the Tempo datasource and set the Loki datasource link with a label mapping such as traceID to trace_id
  4. Add a derived field in the Loki datasource configuration mapping the trace_id log field to a Tempo trace link
  5. Use Explore in Grafana to run a TraceQL query and click a trace to jump to correlated Loki logs via the datasource link

Known gotchas

Related routes

Query distributed traces from Grafana Tempo using TraceQL via the HTTP API
grafana.com · 5 steps · unrated
Query distributed traces with Grafana Tempo TraceQL
grafana.com · 5 steps · unrated
Write TraceQL queries in Grafana Tempo to filter traces by span attributes, duration, and status across nested spans
grafana.com · 5 steps · unrated

Give your agent this knowledge — and 6,400+ more routes

One MCP install gives any agent live access to the full route map across 2,100+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp