Can we mask the value for custom metrics while declaring template variables in grafana dashboard

Hai all,

I declared a custom value variable with the following values:

1 , 2 , 4 , 10, 50, 100

I want to give an alias or do masking for 100. can we change the value to “ALL”?

Could you please help me out?

Thanks & regards,
Bharath Kumar.

it sounds like you want value mapping:

Or are you referring to alerts here? What grafana version?

Hello @mattabrams

No, I am not searching for value mapping. I am currently using grafana-8.3.

I declared a custom variable with custom values in comma-separated values as 1,2,5,10,20,50,100. Among those values, I want to mask the 100 as “ALL”.

Is it possible to do?

1 : 1 , 2 : 2 , 5 : 5 , 10 : 10 , 20 : 20 , 50 : 50 ,ALL : 100

image

3 Likes

Thanks, @yosiasz. It’s working. Thanks for your support

1 Like

All : < 100, 20% to 30% : <=30>=20,10% to 20% : <=20>=10,5% to 10% : <=10>=5 , Lt eq 5% : <=5

so similarly, I want to map a value to a key,
Ex :- NULL : (Here I don’t want to pass anything)

means I want to declare a null value to a key. will it be possible?

Could you please help me?

Thanks & regards,
Bharath Kumar.

1 Like

If you dont to pass anything then its not a key value?

I want to pass null as a value. Will it be possible?

1 Like

hello @yosiasz ,

image

how to use the escaped\ ,value in the above image?

can we use escape characters to pass a null value to a key?

read this

https://grafana.com/docs/grafana/latest/variables/advanced-variable-format-options/

1 Like