grafana / grafana-zabbix

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

Variables based on Zabbix data source, Item tag does not filter #1543

Open MrNobodieZR opened 1 year ago

MrNobodieZR commented 1 year ago

The problem In a dashboard, I tried to create a variable based on a Query for a Zabbix data source. The Query type is Item. Filtering based on the Group and Host work fine. But Item tag doesn't do anything.

Expected behavior I expected it to filter like it does in the query inside panels, so it limit the number of items displayed.

Screenshots First with the right tag Capture d’écran 2022-12-21 à 18 06 29

Second with non existing tag. Capture d’écran 2022-12-21 à 18 08 51

It's the same result if I leave it blank.

Json model The query for the variable looks like : "query": { "application": "", "group": "xxxxx", "host": "/.*/", "item": "/(?=VF)/", "itemTag": "Randomqkflnkjqnef", "queryType": "item" },

The query in a panel look like : "group": { "filter": "XXXX" }, "hide": false, "host": { "filter": "/.*/" }, "item": { "filter": "(?=VF)" }, "itemTag": { "filter": "$Variable" },

Software versions Grafana Zabbix Grafana-Zabbix Plugin
9.3 6.2.3 4.2.10

Thx for your help & thx for you nice plugin !

rochine123 commented 1 year ago

I get same issue, so how to fix it, plz

gustavoghpf commented 2 months ago

Hello Grafana Team,

This is a major drawback in new versions of the plugin. In short, the field that filters item tags in the dashboard variable does not work and this breaks several dashboards when updated, in addition to making it difficult to organize the results of some queries. The problem has been happening since version 4.3.0 and was mentioned in

1329

1450

and others.

@wbrowne @zoltanbedi @gabor Could you provide some help to resolve this issue? Best regards