Add Prometheus datasource for Grafana
The commit reworks the layout to allow composable configurations by
splitting out server and datasource configurations.
The change stays backward compatible.
Change-Id: Id674840ca0947ccff44cb444d3eddcc51afc5e56
diff --git a/grafana/client/init.yml b/grafana/client/init.yml
new file mode 100644
index 0000000..08a9be8
--- /dev/null
+++ b/grafana/client/init.yml
@@ -0,0 +1,17 @@
+classes:
+- service.grafana.client.single
+parameters:
+ _param:
+ grafana_protocol: http
+ grafana_port: 3000
+ grafana:
+ client:
+ enabled: true
+ server:
+ protocol: ${_param:grafana_protocol}
+ host: ${_param:grafana_address}
+ port: ${_param:grafana_port}
+ user: ${_param:grafana_user}
+ password: ${_param:grafana_password}
+ remote_data:
+ engine: 'salt_mine'