grafana / grafana-zabbix

Zabbix plugin for Grafana dashboard
http://play.grafana-zabbix.org
Apache License 2.0
2.06k stars 458 forks source link

RegEXP in tags on problem panel. #1421

Open serrrios opened 2 years ago

serrrios commented 2 years ago

Hello! Need support for regexp in tags in the problem panel to avoid unnecessary problems.

image

gdeleon23 commented 2 years ago

Hi, I had a lot of headaches with the regex to exclude hostgroups, i think is the same for tags Can you try with?

/((?!NOALERT).)*/

Mi regex to exclude "build" and show 24x7 is:

/^((?!BUILD).)*24x7/

Hope this can help you.

alexanderzobnin commented 2 years ago

Hi! Do you use problems view in Zabbix? Ho do you use tags there? It's tricky to implement regex filter for tags since it's not supported by Zabbix API. It supports like operator which can make filtering more flexible, so maybe I can add it at least.

TheMonkeyBrain commented 2 years ago

I am facing the same problem.

@alexanderzobnin In zabbix problems view to not show the tag "component:updates" we filter the tags like this: zabbix_problem_tags

Zabbix v6.0.6 Grafana v9.0.1 Zabbix plugin v4.2.9

I hope this helps

TheMonkeyBrain commented 2 years ago

Another solution could be the use of the dashboard settings variables with the regexfilter. But it doesn't look like i can get the tags through that.

lomobot commented 2 years ago

@alexanderzobnin Mr.Zobnin, our team needs this feature vey much

mrgolangv commented 2 years ago

Me too

klavik commented 2 years ago

@alexanderzobnin It might be very usefull for my team too.

timnorm commented 2 years ago

@alexanderzobnin very necessary functionality!

ttamiozzo commented 1 year ago

@alexanderzobnin yep, this feature could be awesome to have!

demanuPL commented 7 months ago

Any news about this feature? T clould be good to exclude problems by filtering tags by regex