Y-axis is showing custom "No value" string when decimals are suppressed

I’m using Grafana 11.2.0 on Windows.

I have a time series showing the standard Processor Queue Length performance counter for the CPU object on Windows - although the nature of the data shouldn’t matter here.

I supplied a custom string to Standard Options / No value, so a custom string is displayed when there’s no data whatsoever, instead of the default. It’s set to “No performance data was found for this counter in the selected time range”, but again, the exact string shouldn’t matter here.

What matters is this: Because of the nature of the data (Processor Queue Length), I shouldn’t ever have any decimal shown along the Y-axis, so I suppressed them by setting Standard Options / Decimals to 0.

Right now, my values range between 0 and 5; the lowest value shown along the bottom of the panel is 0, and the highest value shown along the top of the panel is 6.

Then the panel renders 12 horizontal lines. Every other line has the proper number shown along the Y axis: 0, 1, 2, 3, 4, 5 and 6. However, between those entries on the Y-axis, I have a bogus string value: The one I supplied under “No value” (“No performance data was found for this counter in the selected time range”), only, partly visible - it’s showing the right end of the string: “lected time range”…so my Y-axis looks like this:

6
lected time range
5
lected time range
4
lected time range
3
lected time range
2
lected time range
1
lected time range
0

This is a screenshot:

If I set Standard Options / Decimals back to ‘auto’ (from 0), then I have decimals:

6
5.5
5
4.5
4
3.5
3
2.5
2
1.5
1
0.5
0

As I said - due to the nature of the data being rendered, I should never have decimals…so it seems like wherever a decimal would have been shown, it gets suppressed (great), and replaced with my custom “No value” string (not so great). As far as I know, this string is never intended to be shown anywhere as part of the Y-axis (I don’t see how that would ever be a desirable outcome).

This is a screenshot where the Y-axis is allowed to show decimals:

I can set decimals to 0 and leave “No value” blank, and then I get exactly the desired output…only, when I have no data, the default string is shown, as I’ve removed mine. In the short term, that might be my best solution, but I do like being able to specify custom strings as this is my opportunity to explain to the user - on a panel-by-panel basis - why he might not be seeing any data.

Is this a known bug? Might there be any better workaround?

[Edit]

Yes, this appears to have been reported already, a bit over a year ago:

However, except for my own response (just now) there doesn’t appear to be any follow-up.

1 Like

Did you test the latest 11.4? Maybe it is fixed there.

I had forgotten all about 11.4’s release.

Yes, the problem seems to be fixed. Thanks for the suggestion.

I’ll make a note of it on the Github page as well.

1 Like