Description
What happened:
I am using a bar graph to display Loki metrics (unwrapped values). The dashboard defaults to a 30 minute range, which works normally:
However, when I change the range to 1h, the displayed number is not correct. However it is correct when you hover over the bar:
You can see that none of the displayed values are correct (they don't line up with the axis on the bottom).
If I go into the Edit view for the panel, the numbers are correct again, and then if I leave the Edit view, the numbers stay at the correct value.
What you expected to happen:
The numbers displayed next to the bars should be correct
How to reproduce it (as minimally and precisely as possible):
Here is my Loki query:
topk(20,sum by (SrcAddr) (sum_over_time({job="netflow",SamplerAddress=~`${sampler:regex}`} | json | SrcAddr=~".*${src_addr}.*" DstAddr=~".*${dst_addr}.*" | unwrap Bytes[$__range])))
Anything else we need to know?:
Environment:
- Grafana version: Grafana Cloud, currently at 8.1.2
- Data source type & version: Loki, Grafana Cloud
- OS Grafana is installed on: Grafana Cloud
- User OS & Browser: Windows 10, Chrome
- Grafana plugins: N/A
- Others: