grafana-zabbix icon indicating copy to clipboard operation
grafana-zabbix copied to clipboard

Can we have `template` query type?

Open yurtesen opened this issue 4 years ago • 2 comments

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

yurtesen avatar Nov 28 '20 16:11 yurtesen

That makes sense I think.

alexanderzobnin avatar Mar 09 '21 11:03 alexanderzobnin

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.

mjducharme avatar May 01 '22 22:05 mjducharme