From: Paul Cuzner Date: Thu, 4 Oct 2018 23:42:00 +0000 (+1300) Subject: MGR/dashboard: make grafana datasource selectable X-Git-Tag: v14.1.0~1150^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a99618ce41625864f5965e379461b7b480123f54;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/radosgw-detail.json b/monitoring/grafana/dashboards/radosgw-detail.json index b3dbd8a2706c..8aa02414a8fa 100644 --- a/monitoring/grafana/dashboards/radosgw-detail.json +++ b/monitoring/grafana/dashboards/radosgw-detail.json @@ -58,7 +58,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": null, + "datasource": "$datasource", "fill": 1, "gridPos": { "h": 8, @@ -145,7 +145,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": null, + "datasource": "$datasource", "fill": 1, "gridPos": { "h": 8, @@ -239,7 +239,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": null, + "datasource": "$datasource", "fill": 1, "gridPos": { "h": 8, @@ -348,7 +348,7 @@ "label": "Others", "threshold": 0 }, - "datasource": null, + "datasource": "$datasource", "fontSize": "80%", "format": "none", "gridPos": { @@ -412,10 +412,25 @@ ], "templating": { "list": [ + { + "current": { + "tags": [], + "text": "default", + "value": "default" + }, + "hide": 0, + "label": "Data Source", + "name": "datasource", + "options": [], + "query": "prometheus", + "refresh": 1, + "regex": "", + "type": "datasource" + }, { "allValue": null, "current": {}, - "datasource": null, + "datasource": "$datasource", "hide": 0, "includeAll": true, "label": null,