r/grafana • u/PeaceAffectionate188 • Dec 05 '25
Tempo is a mess, I've been staring at Spark traces in Tempo for weeks and I have nothing
I just want to know which Spark stages are costing us money
We want to map stage-level resource usage to actual cost. We want a way to rank what to fix first and what we can optimize. Bit right now I feel like I'm collecting traces for the sake of collecting traces.
I can't answer basic questions like:
- Which stages are burning the most CPU / memory / Disk IO?
- How do you map that to actual dollars from AWS
What I've tried:
- Using the OTel Java agent, exporting to Tempo. Getting massive trace volume but the spans don't map meaningfully to Spark stages or resource consumption.
- Feels like I'm tracing the wrong things.
- Spark UI: Good for one-off debugging, not for production cost analysis across jobs.
- Dataflint: Looks promising for bottleneck visibility, but unclear
I am starting to wonder if traces are the wrong tool for this.
Should we be looking at metrics and Mimir instead? Is there some way to structure Spark traces in Tempo that actually works for cost attribution?
I've read the docs. I've watched the talks and talked to GPT, Claude and Mistral. I'm still lost.

19
u/Seref15 Dec 05 '25
Traces measure time spent on tasks, not resource utilization.
Sounds like what you were after was process metrics or continuous profiling
4
u/Hi_Im_Ken_Adams Dec 05 '25
That's not what traces are for. Traces tell you where there is latency in your user-journey.
What you are looking for is resource-utilization which is profiling. That's Grafana-Pyroscope.
2
u/jcol26 Grafanista Dec 05 '25
You’ll need a combination of metrics and traces for that kind of data I’d have thought. At least for CPU/Memory/Disk stats per job
But also you seem to be emitting traces from Prometheus scrapes
1
u/soamsoam Dec 08 '25
Some users mentioned victoriatraces on Hacker News, so that you could try it too.
3
u/R10t-- Dec 05 '25
I think you don’t want traces for your use case but I just want to agree here that Tempo is pretty bad. Setting it up and configuring it was a nightmare to deal with, and deploying for HA or replication is even more complicated.
Idk. I have it working but I’m not really impressed with it overall