]> 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:42:09 +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-overview.json

index 64f3e13c8fa371715e7b52f7653e478636b6b08c..f950bc46a0fb520f7628b63374e13c287625c0da 100644 (file)
@@ -51,7 +51,7 @@
       "bars": false,
       "dashLength": 10,
       "dashes": false,
-      "datasource": null,
+      "datasource": "$datasource",
       "fill": 1,
       "gridPos": {
         "h": 7,
       "bars": false,
       "dashLength": 10,
       "dashes": false,
-      "datasource": null,
+      "datasource": "$datasource",
       "fill": 1,
       "gridPos": {
         "h": 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": {
       "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": {
       "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": {
       "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": {
       {
         "allValue": null,
         "current": {},
-        "datasource": null,
+        "datasource": "$datasource",
         "hide": 2,
         "includeAll": true,
         "label": null,
         "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"
       }
     ]
   },