From: Paul Cuzner Date: Thu, 4 Oct 2018 23:42:09 +0000 (+1300) Subject: MGR/dashboard: make grafana datasource selectable X-Git-Tag: v14.1.0~1150^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a848411bd8056a90bc778c5a4ace75099fcbb1a0;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-overview.json b/monitoring/grafana/dashboards/radosgw-overview.json index 64f3e13c8fa3..f950bc46a0fb 100644 --- a/monitoring/grafana/dashboards/radosgw-overview.json +++ b/monitoring/grafana/dashboards/radosgw-overview.json @@ -51,7 +51,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": null, + "datasource": "$datasource", "fill": 1, "gridPos": { "h": 7, @@ -138,7 +138,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": null, + "datasource": "$datasource", "fill": 1, "gridPos": { "h": 7, @@ -219,7 +219,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": null, + "datasource": "$datasource", "description": "Latencies are shown stacked, without a yaxis to provide a visual indication of GET latency imbalance across RGW hosts", "fill": 1, "gridPos": { @@ -301,7 +301,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": null, + "datasource": "$datasource", "description": "Total bytes transferred in/out of all radosgw instances within the cluster", "fill": 1, "gridPos": { @@ -389,7 +389,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": null, + "datasource": "$datasource", "description": "Total bytes transferred in/out through get/put operations, by radosgw instance", "fill": 1, "gridPos": { @@ -470,7 +470,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": null, + "datasource": "$datasource", "description": "Latencies are shown stacked, without a yaxis to provide a visual indication of PUT latency imbalance across RGW hosts", "fill": 1, "gridPos": { @@ -559,7 +559,7 @@ { "allValue": null, "current": {}, - "datasource": null, + "datasource": "$datasource", "hide": 2, "includeAll": true, "label": null, @@ -575,6 +575,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" } ] },