]> git-server-git.apps.pok.os.sepia.ceph.com Git - cephmetrics.git/commitdiff
Fix health state colors 222/head
authorPaul Cuzner <pcuzner@redhat.com>
Fri, 24 Aug 2018 01:59:27 +0000 (13:59 +1200)
committerPaul Cuzner <pcuzner@redhat.com>
Fri, 24 Aug 2018 01:59:27 +0000 (13:59 +1200)
Two dashboards were translating the values from
ceph_health_status incorrectly, resulting in
the wrong health state being shown.

Closes: https://github.com/ceph/cephmetrics/issues/202
Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
dashboards/mgr-prometheus/ceph-at-a-glance.json
dashboards/mgr-prometheus/ceph-health.json

index 932166dc76f05cb17a751acb120d73601fcba120..bbf59c45cc0d1df9119c41d175257fc9b4a8ee6a 100644 (file)
         {
           "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": {
           "textEditor": true
         }
       ],
-      "thresholds": "1,5",
+      "thresholds": "1,2",
       "timeFrom": "1m",
       "timeShift": null,
       "title": "Health",
         {
           "op": "=",
           "text": "WARN",
-          "value": "4"
+          "value": "1"
         },
         {
           "op": "=",
           "text": "ERROR",
-          "value": "8"
+          "value": "2"
         }
       ],
       "valueName": "current"
index e50b2bcd837718f0f66d0a1007466b7d38723786..160d48a7bf539aff804ced54791dccc7fcda34c8 100644 (file)
         {
           "from": "0",
           "text": "HEALTH OK",
-          "to": "1"
+          "to": "0"
         },
         {
           "from": "1",
           "text": "HEALTH WARNING",
-          "to": "4"
+          "to": "1"
         },
         {
-          "from": "5",
+          "from": "2",
           "text": "HEALTH ERROR",
-          "to": "99"
-        },
-        {
-          "from": "-10",
-          "text": "NODATA",
-          "to": "0"
+          "to": "2"
         }
       ],
       "sparkline": {
           "textEditor": true
         }
       ],
-      "thresholds": "1,5",
+      "thresholds": "1,2",
       "timeFrom": "1m",
       "timeShift": null,
       "title": "",
               "format": "short",
               "label": "",
               "logBase": 1,
-              "max": "2",
+              "max": "3",
               "min": "-0.5",
               "show": false
             },