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/datasource/influxdb.yml b/grafana/client/datasource/influxdb.yml
new file mode 100644
index 0000000..7abe22f
--- /dev/null
+++ b/grafana/client/datasource/influxdb.yml
@@ -0,0 +1,17 @@
+parameters:
+ _param:
+ grafana_influxdb_is_default: true
+ grafana_influxdb_ds_name: influxdb
+ grafana:
+ client:
+ datasource:
+ influxdb:
+ type: influxdb
+ name: ${_param:grafana_influxdb_ds_name}
+ host: ${_param:grafana_influxdb_address}
+ port: ${_param:grafana_influxdb_port}
+ user: ${_param:grafana_influxdb_user}
+ password: ${_param:grafana_influxdb_password}
+ database: ${_param:grafana_influxdb_database}
+ is_default: ${_param:grafana_influxdb_is_default}
+