-
Notifications
You must be signed in to change notification settings - Fork 12.1k
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
Feature Request: Option to hide zero values in legend and tooltip #1381
Comments
I have the same issue and I end up with 80% of the metrics in my legend with 0 value that i need to hide. |
cant you filter out the zero metrics/series in your query? |
+1 for this issue. |
+1 |
2 similar comments
+1 |
+1 |
I have the same issue, my metrics shows traffic by IP and they spike in and out so at any point in time there could be values or 0. The tooltip shows 100 IPs which is overall but I only care of the point in time I'm hovering over. |
The above PR only hides the zero values if all datapoints are 0. Even if a single datapoint is non-zero on the graph for a given time range, it will not hide the metric. |
+1 It could be nice to specify a pattern. Like "hide if < 0" or "hide if = 0" etc |
As an example, Opentsdb cannot remove zeros in query itself, so it would be great if Grafana can eliminate them from Legend and Tooltip. And looks like a lot of people wants this feature to be there in Grafana. @torkelo Are these +1s enough for #3336 to get merged? Please let me know if any refinement is needed in the PR #3336. |
+1 with a pattern such as "hide when no value" (in current time range) |
will this hide a series only when all of the values are null/zero? what about the tooltip when only part of a series is null/zero and we don't want to show empty values? (see image above) |
These options apply to the tooltip as well. They are only applied then all the values in the series are null or zero |
if the whole series were to be null or 0 then that can be added as part of the query. My problem is where the series have values > 0 but most times at any part of the graph, my tooltip shows every IP address regardless of value or 0. Image describes it best. |
george-vieira +1 . Please add function. If value =0 hide legend |
+1 |
@rgombash ýou do not need to +1 as this is already implemented and in latest 2.6 release |
@torkelo I'm running 2.6.0, but I'm still seeing 0 in tooltips even with 2 options "on". Frankly it would be really useful to see only non-zero values. We have graphs with hundreds of series, but only 1 or 2 are actually non-zero at each time. Often things are much worse: Thanks for Grafana! Otherwise it's awesome. |
@slava-vishnyakov the feature only hides series where are all values are zero. if you have a lot of series where only some have values, can you not filter the metrics in your query? |
@torkelo No, sadly not. Imagine hundreds of microservices that occasionally get 500 Internal error. They might get it only once every 10 minutes. So, now I'm looking at a graph that has a few huge spikes and lot of "dots". Those "dots" make those series "non-zero". I can't also predict which services are going to be failing and filter them in query. But anyway, seeing those 0s at tooltip is IMO unhelpful. Basically, it says something like, "ok here's what you don't see at this point". For me it seems that charts might benefit from not showing zero values at tooltips even by default. |
@slava-vishnyakov: that's the same issue I have as my previous pic shows. My case is a large list of IPs showing traffic data. 1 host in the series speaks for 1 second and it's on the whole time line and tooltip. So when a bunch of are all chatty at differnt times and 0 on others and then there's a spike I want to look at, all of the IPs are shown on the tooltip even though on the exact time of mouse over inspect, I get a huge tooltip. |
+1. What'd be really useful for me is if the tooltip were a bit more dynamic, and could be configured to show only non-zero values at a given point (thus, the set of rows in the tooltip would be changing as the mouse moves around the graph). In other words: This is in contrast with the legend, which represents the entire graph, so showing all series with non-zero values in the time range makes a lot more sense there. |
just reazlied that (1) this issue is closed, and (2) my issue is also covered by #4623. Sorry for the noise. |
Can't believe I just read through 2 years of comments on this and it is still not implemented. |
+1 This feature is still not available out of the blue. |
+1 BTW chronograf does this oob |
+1 |
2 similar comments
+1 |
+1 |
+1 In addition, a big tooltip is hidden at the top, even if the scroll is at the top of the page. So i can't view legend on the top with values. :-( |
Hi @torkelo and thanks for your answer ! The option "Hide series" works but it's not the wanted feature here. But if a serie has only one peak of data, and the rest is zero in the time range, the serie will appear and the feature request here is on hover tooltip to deactivate all data with 0 values. Below you can see that, in the time range, we've got a first peak at 09:07 with number of series. And then with a great number of series, hoover toolip is sorted by decreasing ... I even can't read the series with values, because tooltip is out of range in the screen (and scroll is up) |
That is unrelated to the feature request your commenting on |
TITLE :
Am I missing something or perhaps another issue on it ? |
This feature was closed as it only aksed for hiding series with all zeros in legend and tooltip, implemented and shipped in v2.6 |
But, zeros values are still displayed in tooltip as you can see. I'm just a humble developer, I search on internet, i felt here, i can see more than 40 comments, a lot of people need this feature and a lot of +1 for 4 years... I search more and find this issue which is exactly the problem I encounter.. #3094 But You've marked as a duplicate here ... Can you reconsider your position ? |
I can confirm that my original request was never fully resolved and Jeremie and the multiple other people who have chimed in about this are correct. It would be great if the request could be acknowledged and guidance provided in terms of how to proceed here. |
From the issue description:
Which is exactly what the PR did that closed this issue |
I am not at all opposed to what your asking but please comment on a new feature request or maybe this related issue #6946 |
For my part, changing the order in tool tips was good enough to get along for now. Under Visualization -> Hover Tooltip -> Sort Order I set it to Decreasing. The tooltip still looks ugly as sin but at least the values go on top and I can see the numbers. |
What was the actual query you used to implement this? I'm having trouble with the syntax. e.g. how would I reject 0 values from this:
|
From @tomlut
Actually that is the query. The data is pre-normalised which makes the process look really simple.
Apologies, I would be learning how to do it at the same time you would be. The best advice I would give is to experiment liberally with brackets and google. |
I don't follow why this issue is closed. There are several related issues and PRs that show this is an ongoing issue. |
This issue is not yet fixed. Please reopen the ticket |
please reopen |
if you fall here, dont loose your time, switch to influxdb/chronograf or anything else and giveup with grafana ;-) it's the best advice i can give here :) |
Two years has gone,this issue sames still exsits! |
The new options to hide null values in the legend and 'all series' tooltip are excellent but I run into a problem when using them with stacked bar graphs.
With stacked graphs we need to set 'null as zero' in order to get the stacking to work properly but this negatively impacts the ability to hide null values in the legend and tooltip as null values will show up as zero instead of null.
I'm not sure if there's a better way to address this but one option would be to add an option to 'hide zero values' in addition to the existing 'hide null values'. Another option would be to make the 'hide value' option a parameter which you could set to any numeric value. This would be similar to what the 'removeBelowValue' function does but in this case it would affect the display of legends and tooltips.
The text was updated successfully, but these errors were encountered: