Regex Code in grafana (Zabbix Trigger Visualization
I have tried regex code this :(/boot|/chroot/home.|/var/www.) but after I inspect using regex101, it says.
All the errors detected are listed below, from left to right, as they appear in the pattern.
/ An unescaped delimiter must be escaped, use `\`
/ An unescaped delimiter must be escaped, use `\`
/ An unescaped delimiter must be escaped, use `\`
/ An unescaped delimiter must be escaped, use `\`
/ An unescaped delimiter must be escaped, use `\`
Before that, I already pasted this regex code into Grafana 12 transformation ‘Filter data by values’ so it will display all trigger exceptions below, but not affected:
/boot
/chroot/home
/chroot/home/ncmanred/data
/chroot/home/ncmot/data
/chroot/home/ncmou/data
/chroot/home/ncscs
/chroot/home/ncssc/data
/chroot/home/ncstb/data
/chroot/home/ncstidc/data
/chroot/home/pnscloud/data
/var/www/ncmanred/data
/var/www/ncmot/data
/var/www/ncmou/data
/var/www/ncscs
/var/www/ncssc/data
/var/www/ncstb/data
/var/www/ncstidc/data
/var/www/pnscloud/data
/chroot/home/ncsains/data2
/var/www/ncsains/data2
/var/www
Below is a sample trigger by Zabbix in Grafana. I want to display the [/data/db] trigger only. But [/chroot/home] still appears after I paste the regex above
[/data/db]: Space is low (used > 80%, total 1650.3GB)
[/chroot/home]: Space is low (used > 80%, total 39.3GB)
Below is my query setting
Query type Problems
Group Wilson
Host /.*/
Proxy
Problem /Space is low/
Tags tag1:value1, tag2:value2 AND/OR
Show Problems Severity Show all problems
Read more here: Source link
