Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stacked graph with bytes display error #1251

Closed
mmolnar opened this issue Dec 17, 2014 · 8 comments
Closed

Stacked graph with bytes display error #1251

mmolnar opened this issue Dec 17, 2014 · 8 comments

Comments

@mmolnar
Copy link
Contributor

mmolnar commented Dec 17, 2014

When using a stacked graph with bytes format the axis legend shows incorrect values. It is using GB with the label of GiB.

Actual points are showing correct values, but the legend is using a factor of 1000 instead of 1024.

This is only in the overall dashboard view. In the graph detail the legend seems to be fine.

grafana bug

@torkelo
Copy link
Member

torkelo commented Dec 17, 2014

What do you mean incorrect? do you want the steps on the axis labels to be in factors of 2? The axis formats and the legend values use the exact same scaling factor / code so should be the same.

If you hover over the free line does the hover tooltip not show something like 400 GIB ?

@torkelo torkelo added the needs more info Issue needs more information, like query results, dashboard or panel json, grafana version etc label Dec 17, 2014
@mmolnar
Copy link
Contributor Author

mmolnar commented Dec 18, 2014

I know it should be exactly the same, but somehow its not scaling correctly, if I hower over the tooltip then it shows:

used: 155 GiB
buffered: 0 MiB
cached: 1000 MiB
free: 222 GiB

If i change the display to none then the legend is showing correct value at 400000000000

Also, the exact same graph shows maximum at ~378 GiB if display only the single graph.
detail

@torkelo
Copy link
Member

torkelo commented Dec 18, 2014

Are you sure stack is not enabled? given how cached is 1000MiB and looks like it is stacked on top of used. Check stack option and the tooltip option "Stacked Values", if it is set to individual the tooltip shows individual so will will not match axis legend value (if set to cumulative the tooltip should match y axis value)

@mmolnar
Copy link
Contributor Author

mmolnar commented Dec 18, 2014

The stack is enabled, I did mention it in the first comment that I am using an stacked graph. The Stacked values are set to individual.

What my issue is that 155 GiB + 222 GiB + 0 MiB + 1000 MiB =! 400GiB

Also its weird that this is only in the dashboard overall view where I have multiple graphs, if i go to "Graph Title" -> view then the legend shows correct value.

@torkelo
Copy link
Member

torkelo commented Dec 18, 2014

Wow, after investigating more I found a pretty mayor bug in how scaled units (like GiB) had a rounding issue where values like 378 were rounded to 400. Thanks for reporting this bug!! Fixed in master now. Will try to push out 1.9.1 during Christmas or first week Jan. But if you want it is really easy to create a release build from master (read the guide in readme).

@torkelo torkelo added this to the 1.9.1 milestone Dec 18, 2014
@torkelo torkelo added type/bug area/panel/graph and removed needs more info Issue needs more information, like query results, dashboard or panel json, grafana version etc labels Dec 18, 2014
@mmolnar
Copy link
Contributor Author

mmolnar commented Dec 18, 2014

This was quick, thank you!

@pvpsbs
Copy link

pvpsbs commented Dec 19, 2018

Hi, still we are facing the same issue in Grafana v5.4.2 (d812109). Showing more value than real. For 7023Mi , showing as 11.29 GiB instead of 6.86 GiB

We are following data (IEC) bytes format to display on graph.

@pvpsbs
Copy link

pvpsbs commented Dec 19, 2018

It is not the grafana issue. We found fix at metric level.
https://stackoverflow.com/questions/33523791/kubernetes-grafana-memory-usage-does-not-match-in-graph

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants