Logs, metrics and traces each live in different tools. How do you make correlation work in Grafana?
IntermediateScenarioTracing and OpenTelemetry
Answer
Situation read → Engineers context-switch between tools and lose time.
What I'd do →
- Use consistent resource attributes:
service.name,service.namespace,deployment.environment,k8s.pod.name. - Tempo data source: configure trace to logs (Loki) and trace to metrics (Prometheus) with tag mappings.
- Loki data source: derived fields to open trace IDs in Tempo.
- Prometheus: exemplars linking to Tempo.
- Test the full loop: metric spike → exemplar → trace → logs.
Why → Correlation works only with consistent labels and configured links.
Interview tip → The hard part is naming consistency, not the tooling.
More on Tracing and OpenTelemetry
Your company has 30 microservices and no tracing. How do you roll out distributed tracing?IntermediateTraces stop at service B: you see spans from A, but B's spans start new traces. What is wrong?BeginnerTracing every request costs too much. How do you design sampling?IntermediateYou set up tail sampling with 4 Collector replicas, but traces are fragmented and error traces are missing. Why?AdvancedA checkout request takes 4 seconds. Walk through how you use a trace to find the cause.BeginnerYour OpenTelemetry Collector is getting OOMKilled under load. How do you stabilise it?Intermediate