]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
MGR/dashboard: make grafana datasource selectable
authorPaul Cuzner <pcuzner@redhat.com>
Thu, 4 Oct 2018 23:42:00 +0000 (12:42 +1300)
committerPaul Cuzner <pcuzner@redhat.com>
Mon, 8 Oct 2018 19:23:39 +0000 (08:23 +1300)
Grafana dashboard updated to use a templating
variable for the datasource

Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
monitoring/grafana/dashboards/radosgw-detail.json

index b3dbd8a2706c5989c4a36d2d7ac2904944552ec2..8aa02414a8fab56be0243e70b04a12fcd93329ff 100644 (file)
@@ -58,7 +58,7 @@
       "bars": false,
       "dashLength": 10,
       "dashes": false,
-      "datasource": null,
+      "datasource": "$datasource",
       "fill": 1,
       "gridPos": {
         "h": 8,
       "bars": false,
       "dashLength": 10,
       "dashes": false,
-      "datasource": null,
+      "datasource": "$datasource",
       "fill": 1,
       "gridPos": {
         "h": 8,
       "bars": false,
       "dashLength": 10,
       "dashes": false,
-      "datasource": null,
+      "datasource": "$datasource",
       "fill": 1,
       "gridPos": {
         "h": 8,
         "label": "Others",
         "threshold": 0
       },
-      "datasource": null,
+      "datasource": "$datasource",
       "fontSize": "80%",
       "format": "none",
       "gridPos": {
   ],
   "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,