From: Paul Cuzner Date: Thu, 4 Oct 2018 23:40:49 +0000 (+1300) Subject: MGR/dashboard: make grafana datasource selectable X-Git-Tag: v14.1.0~1150^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7c04098e6876d16f55860e8984ccc16cb2bba6dd;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/cephfs-overview.json b/monitoring/grafana/dashboards/cephfs-overview.json index 9c71d3822be5..706139242799 100644 --- a/monitoring/grafana/dashboards/cephfs-overview.json +++ b/monitoring/grafana/dashboards/cephfs-overview.json @@ -51,7 +51,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": null, + "datasource": "$datasource", "fill": 1, "gridPos": { "h": 9, @@ -138,7 +138,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": null, + "datasource": "$datasource", "fill": 1, "gridPos": { "h": 9, @@ -220,10 +220,25 @@ "tags": [], "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": "MDS Server",