-
What Grafana version are you using?
Grafana v12.2.1 -
What are you trying to achieve?
One time series graph per value of a specific label that sums up values found in logs -
How are you trying to achieve it?
Given loglines like this:{ "time": "1764765960.150", "message": "2025-12-02 10:57:32,553 INFO - stage=my_stage count=2 env=prod jobName=job_1" }I imagine that this logql query is pretty close to what I want:
sum by(jobName)( rate( {service_name="my_service"} | json message="message" | line_format `{{.message}}` | logfmt | stage = `my_stage` | unwrap count [$__interval] ) )If I run the query in the explore tab, it looks like I’d just need to add some smoothing to get rid of the jaggedness or adjust the time window and I’d be done:
-
What happened?
When I plug the query into the time series widget, it looks quite different: -
What did you expect to happen?
I expected the result to look similar to the graph in the explore tab. I assume I’m just missing something very basic, but I couldn’t solve it with googling and gpt.

