]> 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:40:49 +0000 (12:40 +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/cephfs-overview.json

index 9c71d3822be5b83928535338396098e1337bd99c..70613924279986048b7b637b4602f78b22beb246 100644 (file)
@@ -51,7 +51,7 @@
       "bars": false,
       "dashLength": 10,
       "dashes": false,
-      "datasource": null,
+      "datasource": "$datasource",
       "fill": 1,
       "gridPos": {
         "h": 9,
       "bars": false,
       "dashLength": 10,
       "dashes": false,
-      "datasource": null,
+      "datasource": "$datasource",
       "fill": 1,
       "gridPos": {
         "h": 9,
   "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": null,
         "current": {},
-        "datasource": null,
+        "datasource": "$datasource",
         "hide": 0,
         "includeAll": true,
         "label": "MDS Server",