]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
MGR/dashboard: make grafana datasource selectable
authorPaul Cuzner <pcuzner@redhat.com>
Thu, 4 Oct 2018 23:41:07 +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/hosts-overview.json

index 50f7e4b060039ccd9acf956ff6ba4c8be6f19e2e..718aaa3ac644d80471fdc40cd7da024dc9fbc978 100644 (file)
@@ -48,7 +48,7 @@
         "rgba(237, 129, 40, 0.89)",
         "#d44a3a"
       ],
-      "datasource": null,
+      "datasource": "$datasource",
       "format": "none",
       "gauge": {
         "maxValue": 100,
         "rgba(237, 129, 40, 0.89)",
         "#d44a3a"
       ],
-      "datasource": null,
+      "datasource": "$datasource",
       "decimals": 0,
       "description": "Average CPU busy across all hosts (OSD, RGW, MON etc) within the cluster",
       "format": "percentunit",
         "rgba(237, 129, 40, 0.89)",
         "#d44a3a"
       ],
-      "datasource": null,
+      "datasource": "$datasource",
       "decimals": 0,
       "description": "Average Memory Usage across all hosts in the cluster (excludes buffer/cache usage)",
       "format": "percentunit",
         "rgba(237, 129, 40, 0.89)",
         "#d44a3a"
       ],
-      "datasource": null,
+      "datasource": "$datasource",
       "description": "IOPS Load at the device as reported by the OS on all OSD hosts",
       "format": "none",
       "gauge": {
         "rgba(237, 129, 40, 0.89)",
         "#d44a3a"
       ],
-      "datasource": null,
+      "datasource": "$datasource",
       "description": "Average Disk utilization for all OSD data devices (i.e. excludes journal/WAL)",
       "format": "percent",
       "gauge": {
         "rgba(237, 129, 40, 0.89)",
         "#d44a3a"
       ],
-      "datasource": null,
+      "datasource": "$datasource",
       "decimals": 0,
       "description": "Total send/receive network load across all hosts in the ceph cluster",
       "format": "bytes",
       "bars": false,
       "dashLength": 10,
       "dashes": false,
-      "datasource": null,
+      "datasource": "$datasource",
       "description": "Show the top 10 busiest hosts by cpu",
       "fill": 1,
       "gridPos": {
       "bars": false,
       "dashLength": 10,
       "dashes": false,
-      "datasource": null,
+      "datasource": "$datasource",
       "description": "Top 10 hosts by network load",
       "fill": 1,
       "gridPos": {
   "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": "",
         "current": {},
-        "datasource": null,
+        "datasource": "$datasource",
         "hide": 2,
         "includeAll": true,
         "label": null,
       {
         "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": null,
       {
         "allValue": null,
         "current": {},
-        "datasource": null,
+        "datasource": "$datasource",
         "hide": 2,
         "includeAll": true,
         "label": null,