From: Paul Cuzner Date: Thu, 4 Oct 2018 23:41:52 +0000 (+1300) Subject: MGR/dashboard: make grafana datasource selectable X-Git-Tag: v14.1.0~1150^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b64289ca3d112d4761929c742458fec765cda04c;p=ceph.git MGR/dashboard: make grafana datasource selectable Grafana dashboard updated to use a templating variable for the datasource Signed-off-by: Paul Cuzner --- diff --git a/monitoring/grafana/dashboards/pool-overview.json b/monitoring/grafana/dashboards/pool-overview.json index f0e2b7343053..505108d26ba6 100644 --- a/monitoring/grafana/dashboards/pool-overview.json +++ b/monitoring/grafana/dashboards/pool-overview.json @@ -58,7 +58,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": null, + "datasource": "$datasource", "fill": 5, "gridPos": { "h": 7, @@ -140,7 +140,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": null, + "datasource": "$datasource", "fill": 5, "gridPos": { "h": 7, @@ -238,7 +238,7 @@ "value": "current" } ], - "datasource": null, + "datasource": "$datasource", "fontSize": "100%", "gridPos": { "h": 7, @@ -384,7 +384,7 @@ "value": "current" } ], - "datasource": null, + "datasource": "$datasource", "fontSize": "100%", "gridPos": { "h": 7, @@ -516,7 +516,7 @@ }, { "columns": [], - "datasource": null, + "datasource": "$datasource", "fontSize": "100%", "gridPos": { "h": 7, @@ -654,7 +654,7 @@ { "allValue": null, "current": {}, - "datasource": null, + "datasource": "$datasource", "hide": 2, "includeAll": true, "label": null, @@ -674,7 +674,7 @@ { "allValue": null, "current": {}, - "datasource": null, + "datasource": "$datasource", "hide": 2, "includeAll": true, "label": "Pool Name", @@ -690,6 +690,21 @@ "tagsQuery": "", "type": "query", "useTags": false + }, + { + "current": { + "tags": [], + "text": "default", + "value": "default" + }, + "hide": 0, + "label": "Data Source", + "name": "datasource", + "options": [], + "query": "prometheus", + "refresh": 1, + "regex": "", + "type": "datasource" } ] },