]> 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:41:52 +0000 (12:41 +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/pool-overview.json

index f0e2b734305341db99024581fecf35f1d59518f6..505108d26ba6b866109c8505c3bd6340c8a6239a 100644 (file)
@@ -58,7 +58,7 @@
       "bars": false,
       "dashLength": 10,
       "dashes": false,
-      "datasource": null,
+      "datasource": "$datasource",
       "fill": 5,
       "gridPos": {
         "h": 7,
       "bars": false,
       "dashLength": 10,
       "dashes": false,
-      "datasource": null,
+      "datasource": "$datasource",
       "fill": 5,
       "gridPos": {
         "h": 7,
           "value": "current"
         }
       ],
-      "datasource": null,
+      "datasource": "$datasource",
       "fontSize": "100%",
       "gridPos": {
         "h": 7,
           "value": "current"
         }
       ],
-      "datasource": null,
+      "datasource": "$datasource",
       "fontSize": "100%",
       "gridPos": {
         "h": 7,
     },
     {
       "columns": [],
-      "datasource": null,
+      "datasource": "$datasource",
       "fontSize": "100%",
       "gridPos": {
         "h": 7,
       {
         "allValue": null,
         "current": {},
-        "datasource": null,
+        "datasource": "$datasource",
         "hide": 2,
         "includeAll": true,
         "label": null,
       {
         "allValue": null,
         "current": {},
-        "datasource": null,
+        "datasource": "$datasource",
         "hide": 2,
         "includeAll": true,
         "label": "Pool Name",
         "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"
       }
     ]
   },