grafana / grafana-zabbix

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

Can we have `template` query type? #1108

Open yurtesen opened 3 years ago

yurtesen commented 3 years ago

Is your feature request related to a problem? Please describe. I would like to associate certain dashboards to certain templates. Because those templates collect the information I want to see in that specific dashboard. The hosts which does not have that specific template does not interest me.

Describe the solution you'd like There are currently query types like application or group with grafana-zabbix. If there was a query type of template then one could filter hosts or items based on template.

Describe alternatives you've considered Not sure if there is any. Maybe if the hosts were added to groups based on template in Zabbix itself. But it is cumbersome and unnecessary because Zabbix already allows searching hosts with specific templates.

Additional context In zabbix, data is collected using Templates. Meaning a host which has a specific template has specific values collected.

The zabbix API allows filtering hosts based on templateids https://www.zabbix.com/documentation/5.2/manual/api/reference/host/get

It would be great if one could make dashboards for specific template(s), then browse the hosts which are linked to that specific template. Because if a host does not have a specific template, it probably does not have the items we are looking for anyway.

image

alexanderzobnin commented 3 years ago

That makes sense I think.

mjducharme commented 2 years ago

This would actually probably work better for most people than my feature request. I would really like this as well. Currently our users would have to know what type of device it is. Currently users can select a device of the wrong type and then the dashboard doesn't populate.

github-actions[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had activity in the last 2 years. It will be closed in 60 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions!