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/single.yml b/grafana/client/single.yml
index 49ac876..87992a7 100644
--- a/grafana/client/single.yml
+++ b/grafana/client/single.yml
@@ -1,23 +1,12 @@
classes:
-- service.grafana.client.single
+- system.grafana.client
+- system.grafana.client.datasource.influxdb
parameters:
- grafana:
- client:
- enabled: true
- server:
- protocol: http
- host: ${_param:stacklight_monitor_address}
- port: 3000
- user: ${_param:grafana_user}
- password: ${_param:grafana_password}
- remote_data:
- engine: 'salt_mine'
- datasource:
- lma:
- type: influxdb
- host: ${_param:grafana_influxdb_host}
- port: ${_param:influxdb_port}
- user: lma
- password: ${_param:influxdb_stacklight_password}
- database: lma
- is_default: true
+ _param:
+ grafana_address: ${_param:stacklight_monitor_address}
+ grafana_influxdb_address: ${_param:grafana_influxdb_host}
+ grafana_influxdb_port: ${_param:influxdb_port}
+ grafana_influxdb_user: lma
+ grafana_influxdb_password: ${_param:influxdb_stacklight_password}
+ grafana_influxdb_database: lma
+ grafana_influxdb_ds_name: lma