Key value mapping in Grafana

I have data as follows in a measurement in Influxdb

site | value
a | 22
b | 56
c | 23

a and b are prod sites and c is a non-prod site

I want to use templating to provide a variable called environment with the options “prod” and “non-prod”

When a user chooses prod, does grafana provide some mechanism to translate “prod” to regex ^(a|c).* - like a key value pair

The most obvious answer is to simply add another tag key for environment in the measurement. But want to see if this can be simply accomplished in Grafana


That’s not supported. Please add tag key for environment in the measurement as you thought.