Zabbix datasource - won't populate and won't go away

I’ve tried creating a zabbix datasource using both the UI and via config. Neither populates the chart lists with any zabbix data. I’ve tested my api key using curl and I can get hosts, items, etc.

Turning on debug logging shows the ‘item.get’ request being made but nothing being returned. No errors (that I can find).

When I tried to create the datasource using a yaml file I ended up with a source that I can’t delete. I’ve tried the various suggestions including adding ‘readOnly: false’ and ‘editable: true’ to the config, removing the config as well as creating a ‘deleteDatasources’ entry but nothing seems to work. Is there another avenue to remove this or do I just live with it?

Grafana v11.1.0 (5b85c4c2fc)

The configuration file can also list data sources to automatically delete, called deleteDatasources. Grafana deletes the data sources listed in deleteDatasources before adding or updating those in the datasources list.

You can configure Grafana to automatically delete provisioned data sources when they’re removed from the provisioning file. To do so, add prune: true to the root of your provisioning file. With this configuration, Grafana also removes the provisioned data sources if you remove the provisioning file entirely.

1 Like

Hey @ethrbunny, the best way to use the yaml is to provision various Grafana’s deploys without needing to do all the configurations for each datasources, dasboards, etc.

So, it’s not a “solution“ for your case. What you can do is use the tip from @jangaraj and try to debug a little more the items from item.get that you’re using. Maybe the type, text/numeric is wrong, maybe the timeframe on the dashboard/query options is not getting the latest data of your item.

Hope it helps!