f6e5544264
This change adds a new 'datasource' parameter to the dashboard metadata. This way, the Grafana client state will manage only the dashboards that match with the deployed datasource (either InfluxDB or Prometheus). For backward compatibility, the client will always manage the dashboards that don't set this new parameter. Change-Id: Iac323d756aff6ca4180f4b648a1d02692ebf292b
17 lines
670 B
YAML
17 lines
670 B
YAML
dashboard:
|
|
grafana:
|
|
datasource: influxdb
|
|
format: json
|
|
template: grafana/files/grafana_dashboards/grafana_influxdb.json
|
|
main:
|
|
datasource: influxdb
|
|
format: yaml
|
|
base_dashboards: ['grafana:client:base_templates:main_dashboard']
|
|
base_rows: ['grafana:client:base_templates:service_row']
|
|
base_panels: ['grafana:client:base_templates:cluster_status_singlestat']
|
|
service_level:
|
|
datasource: influxdb
|
|
format: yaml
|
|
base_dashboards: ['grafana:client:base_templates:service_level_dashboard']
|
|
base_rows: ['grafana:client:base_templates:service_level_row']
|
|
base_panels: ['grafana:client:base_templates:service_level_piechart']
|