What Grafana version and what operating system are you using?
Grafana OSS v8.1.7, Linux
What are you trying to achieve?
Hide null values and zero values from Legend in my Panel
How are you trying to achieve it?
Reading the docs but not finding anything relevant other than possibly overrides
Could not find any docs about it
What did you expect to happen?
Find buttons or some other form of option for “Hide values with only zeros” and “Hide values with only null values” like we had with previous (v7.x) versions.
Can you copy/paste the configuration(s) that you are having problems with?
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
Did you follow any online instructions? If so, what is the URL?
This feature in the graph panel was not added to the newer time series panel. I am not sure if it will be added in the future, or not
Hopefully this would be added, in our use case this is also annoying and blocking us from migrating from the old graph panel into TS panel.
Seeing a similar (the same?) thing here - related to this capability in the older series (to hide the legend for all-null or all-zero series),
Assuming this is what you mean? And any more thoughts on this being added to the new Time Series panel? I’m the same here - need this to move to the new one.
the best chance for getting a feature request added is to pick one of these three null-related discussions and upvote it. Or create your own if these don’t fit:
None of the suggested results is what we are asking for in this thread so I have opened a new discussion for it here: New time series graph missing "Hide series with zeros/null" capability · Discussion #44246 · grafana/grafana · GitHub
We would also need this capability to move to the new time series panel.
I got this to work in the new timeseries by doing this:
transformNull(-1) to turn all the nulls to -1 (or a value that works for you)
Which has the effect of hiding all the missing values in the graph and the tooltip.
I did find that a lot of other functions just made everything disappear for some reason, or didn’t do anything. But the functions above worked!
Also, had no problem getting the tooltips to sort by value. It’s there, just dig a little.