]> 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:35 +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/osds-overview.json

index f72b8d30f6af79755fb2b2843fb58e206c7a6c9a..3fc6d3152c25dca12c8bbd9c636c589135b64b3b 100644 (file)
@@ -53,7 +53,7 @@
       "bars": false,
       "dashLength": 10,
       "dashes": false,
-      "datasource": null,
+      "datasource": "$datasource",
       "fill": 1,
       "gridPos": {
         "h": 8,
     },
     {
       "columns": [],
-      "datasource": null,
+      "datasource": "$datasource",
       "description": "This table shows the osd's that are delivering the 10 highest read latencies within the cluster",
       "fontSize": "100%",
       "gridPos": {
       "bars": false,
       "dashLength": 10,
       "dashes": false,
-      "datasource": null,
+      "datasource": "$datasource",
       "fill": 1,
       "gridPos": {
         "h": 8,
     },
     {
       "columns": [],
-      "datasource": null,
+      "datasource": "$datasource",
       "description": "This table shows the osd's that are delivering the 10 highest write latencies within the cluster",
       "fontSize": "100%",
       "gridPos": {
         "label": "Others",
         "threshold": 0
       },
-      "datasource": null,
+      "datasource": "$datasource",
       "fontSize": "80%",
       "format": "none",
       "gridPos": {
         "label": "Others",
         "threshold": 0
       },
-      "datasource": null,
+      "datasource": "$datasource",
       "fontSize": "80%",
       "format": "none",
       "gridPos": {
         "label": "Others",
         "threshold": "0.05"
       },
-      "datasource": null,
+      "datasource": "$datasource",
       "description": "The pie chart shows the various OSD sizes used within the cluster",
       "fontSize": "80%",
       "format": "none",
       "bars": true,
       "dashLength": 10,
       "dashes": false,
-      "datasource": null,
+      "datasource": "$datasource",
       "description": "Each bar indicates the number of OSD's that have a PG count in a specific range as shown on the x axis.",
       "fill": 1,
       "gridPos": {
       "bars": false,
       "dashLength": 10,
       "dashes": false,
-      "datasource": null,
+      "datasource": "$datasource",
       "description": "Show the read/write workload profile overtime",
       "fill": 1,
       "gridPos": {
   "style": "dark",
   "tags": [],
   "templating": {
-    "list": []
+    "list": [
+        {
+          "current": {
+          "tags": [],
+          "text": "default",
+          "value": "default"
+          },
+          "hide": 0,
+          "label": "Data Source",
+          "name": "datasource",
+          "options": [],
+          "query": "prometheus",
+          "refresh": 1,
+          "regex": "",
+          "type": "datasource"
+        }
+    ]
   },
   "time": {
     "from": "now-1h",