We are using Grafana in a way where we provision all of our data-sources and dashboards upon launch using the excellent Provisioning service. This ensures that we can have a very stateless Docker image which is exactly what we’re looking for.
But, we’ve run into a bit of a snag: We want to use the Zabbix integration (http://docs.grafana-zabbix.org). This integration is bundled as a application with a data-source, panel-type etc.
It’s quite easy to use GF_INSTALL_PLUGINS to automate the installation of the integration upon launch. Where it becomes more complicated is in the provisioning of the datasource itself.
This is because application has to be enabled before the datasource becomes available – and as far as I can see, there’s currently no way of ensuring this happens on start-up, so that I can later provision both an instance of the datasource and dashboards that uses this datasource.
Is there any way to automate the enabling of an application, so that I can provision instances of the data-source it provides? Or is there any other way to programatically, upon start-up, enable a application?
There’s some attempts at using the API to programatically enable the app on https://github.com/alexanderzobnin/grafana-zabbix/issues/398 – but that requires Grafana to be fully launched and listening on it’s web-port. And then I don’t think there is a way to use provisioning to instantiate the data-source – right?