]> git-server-git.apps.pok.os.sepia.ceph.com Git - cephmetrics.git/commitdiff
Fixes to template variables, and health panel
authorPaul Cuzner <pcuzner@redhat.com>
Thu, 24 May 2018 22:57:28 +0000 (10:57 +1200)
committerPaul Cuzner <pcuzner@redhat.com>
Thu, 24 May 2018 23:09:14 +0000 (11:09 +1200)
Template vars now declare the datasource name and 
the health panel has been updated to reflect the 
error codes from mgr correctly

dashboards/mgr-prometheus/ceph-at-a-glance.json

index a60512684c3d35a0fd9a5003dc2839476a56a598..5693a3c6bedaa917475a04f1d1203f5f2ed51268 100644 (file)
@@ -1,4 +1,14 @@
 {
+  "__inputs": [
+    {
+      "name": "DS_LOCAL",
+      "label": "Local",
+      "description": "",
+      "type": "datasource",
+      "pluginId": "prometheus",
+      "pluginName": "Prometheus"
+    }
+  ],
   "__requires": [
     {
       "type": "panel",
       "type": "grafana",
       "id": "grafana",
       "name": "Grafana",
-      "version": "5.0.4"
+      "version": "5.1.3"
     },
     {
       "type": "panel",
       "id": "grafana-piechart-panel",
       "name": "Pie Chart",
-      "version": "1.3.0"
+      "version": "1.3.1"
     },
     {
       "type": "panel",
@@ -62,7 +72,7 @@
   "gnetId": null,
   "graphTooltip": 0,
   "id": null,
-  "iteration": 1526962541471,
+  "iteration": 1527129313400,
   "links": [
     {
       "asDropdown": true,
         {
           "from": "1",
           "text": "WARN",
-          "to": "4"
+          "to": "1"
         },
         {
-          "from": "5",
+          "from": "2",
           "text": "ERROR",
-          "to": "99"
-        },
-        {
-          "from": "-10",
-          "text": "NODATA",
-          "to": "0"
+          "to": "2"
         }
       ],
       "sparkline": {
         {
           "expr": "ceph_health_status",
           "format": "time_series",
-          "intervalFactor": 2,
+          "instant": true,
+          "intervalFactor": 1,
           "refId": "A",
           "target": "consolidateBy(maxSeries(collectd.*.$domain.cephmetrics.gauge.$cluster_name.mon.health),\"max\")",
           "textEditor": true
         }
       ],
-      "thresholds": "1,5",
+      "thresholds": "0.5,1.5",
       "timeFrom": "1m",
       "timeShift": null,
       "title": "Health",
           "min": null,
           "show": false
         }
-      ]
+      ],
+      "yaxis": {
+        "align": false,
+        "alignLevel": null
+      }
     },
     {
       "cacheTimeout": null,
           "min": null,
           "show": true
         }
-      ]
+      ],
+      "yaxis": {
+        "align": false,
+        "alignLevel": null
+      }
     }
   ],
   "refresh": "15s",
   },
   "timezone": "browser",
   "title": "Ceph - At A Glance",
-  "version": 43
-}
+  "version": 58
+}
\ No newline at end of file