8000 Bar graph does not display correct numerical value · Issue #38410 · grafana/grafana · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Bar graph does not display correct numerical value #38410
Closed
@loganmc10

Description

@loganmc10

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:
1

However, when I change the range to 1h, the displayed number is not correct. However it is correct when you hover over the bar:
2

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:

Metadata

Metadata

Assignees

Labels

area/panel/barchartprio/highMust be staffed and worked on either currently, or very soon, ideally in time for the next release.type/bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0