Grafana dashboard variables depending a common one

Hi,

If you’re using Infinity Plugin, you can do a query variable and pass something like this in query definition:

the values in CSV are the ones you have statically written by hand, while the Filter expression does the limiting, so that infinity plugin returns only the desired env. You can hide this variable and it will change with env variable.

If you’re not using infinity plugin (nor can you install it), I’m not sure you can do something like that, since Custom variable type doesn’t support any filtering (like regex in Query type).

1 Like