I created a Grafana dashboard variable and tried to filter the values via the regex field. This works for static regex definition.
I would now like to use another variable inside the regex which provides the regex value.
So the regex field should look somehow like: /$theRealRegexVar/
I tried it with many different versions like /${theRealRegexVar}/
or /[[theRealRegexVar]]/
but it seems not to work.
Does it work somehow or is it simply impossible?
The datasource is prometheus.
The regex would be a regex ;-) (for example "^.*$" - however the user would provide it in the other variable)
Can I ask on the same subject if you can use a a variable in a regex for the next linked variable and so on.
So var1 is set var2 runs the query but to limit results in the regex you use var1. Something like this: /csm-e-${var1}.*/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With