Grafana, InfluxDB, and Regex

I’m looking to create multiple variables for my charts in Grafana. I have Nagios/CheckMK data going to InfluxDB, and some of it is case-sensitive. I’ve tried using the (?i) switch, and receive errors as such:

Template variables could not be initialized: Invalid regular expression: /(?i)pco/: Invalid group

Am I missing something in the query? I’m usually good with regex, and have verified this works on other documents/platforms.

Thank you

It works for me:

tag =~ /.*(?i)$variable.*/

Did you use proper regexp operator =~ ?

1 Like

back at it, and this worked. thanks

Hello Jangaraj,

I have this problem of passing value to the next panel…

More info @ this link, can you pl. help