Value Mapping doesn't work

Hi there

i’m facing an issue about value mapping. so, i have made a table panel that shows me about connectivity to my devices.
gambar

as you can see. i’m using true/false unit and didn’t set up anything in Min,Max, and Decimals. but when i change the timerange to last 24 hours. it become like this
gambar

you can see that i have made value mapping for the value of the status field.
gambar

based on my value mappings, status field should be show INTERMITTEN. but instead of showing INTERMITTEN there, it shows True. is this a bug or what?

if there is a mistake in my configuration and settings please tell me. Thanks

fyi, i used grafana v9.0.3

Hi @yuswanulherlan,

Thanks for opening this post.

I have tested this on Grafana version 9.4.1 and it seems to be working fine. I used TestDB as a datasource and selected CSV Metric content to mockup the dummy data.

Then I defined the Value mappings like this

3 important points to mention here:

1- I deleted all default Threshold values before start defining the Value Mappings

2- I also delete the first value mapping which appears when you click to add value mapping and then select type Value for 0 and

3- For range from 0.001 to 0.999 I used the Range type which you can see in the above screenshot :point_up:

After that, this is how the Table panel looks even setting it to 24 hrs.

If this does not work then the recommendation would be to use the latest stable version of Grafana and try to test it there.

Incase if you still have issues with the latest one then please try to reproduce this same issue on https://play.grafana.org/ and then share the dashboard link so that we can view it.

Thanks

1 Like

i do the same thing in my grafana. but why it didn’t work like you?

my threshold was not set too. it’s still default
image

Hmm, I see that you are using version 9.0.3

Try to use the current stable release ver. 9.4.2 as there might be a bug which got fixed in that older version.

If this still happens in the newer version, then please try to reproduce this same issue on https://play.grafana.org/ and then share the dashboard link so that we can view it?

Thanks

is there any active elastic datasource? i think there’s no data from elastic datasource. i use it btw in my grafana

No I do not have that Datasource on my test machine.

Hmm, I do not think that Datasource is the problem here but instead the version 9.0.3 might be the case as we lately fixed a lot of Dashboard issues.

But as said that if you still see this case after updating to the latest version then use play.grafana.com as there is Elastic Search and reproduce the scenario with any sort of query data.

mmm ok, maybe i will try it later to create a panel with available data and datasource there. i’ll let you know if i was created the panel. Thanks

1 Like