(Grafana newbie here.)
Really frustrated about simple counting of particular events during selected time.
I’ve got a simple dashboard, where I have log lines from LOKI (on the screenshot - filtered by “ERROR” keyword), some graphs, etc.
I want to count (just count, not average, etc.) my app’s errors during given time interval.
5m, 30m or user selected (with mouse on graph).
I’ve created a variable ($var_selected_interval, type=interval, Auto=ON) and used it in a panel:
So… as we can see on the 1st screenshot Errors count in the logs really differs from the “calculated”.
What this " 1.9 " errors mean?
1.9 (even 19) in selected by user 5 minutes period? Wrong!
1.9 per second?.. Doubtfully
So, I need only a count. Count all error lines in my log.
I have tried count_over_time, sum, rate, etc… Nothing helps.
What I am doing wrong?