- What Grafana version and what operating system are you using?
Latest Docker Container running on Arch Linux
- What are you trying to achieve?
Trying to get a LogQL query that works perfectly in Explorer to return the same results in the timeseries view.
- How are you trying to achieve it?
Take the query topk(5, sum(count_over_time({env="prod"}|= "pppoe0" | json | dest_port != "" [${__interval}])) by (dest_port))
and add it to a time-series chart
- What happened?
All of the dest_port
’s are returned
- What did you expect to happen?
Only the top five ports should be returned
- Can you copy/paste the configuration(s) that you are having problems with?
Query as above
- Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
No errors
Example screenshots:
The Explorer view (returns 5 results)
The Chart view (returns many results)