]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Show the OSD's Out and Down panels as red whenever an OSD is in Out... 54539/head
authorAashish Sharma <aasharma@li-e74156cc-2f67-11b2-a85c-e98659a63c5c.ibm.com>
Mon, 25 Sep 2023 11:35:50 +0000 (17:05 +0530)
committerAashish Sharma <aasharma@li-e74156cc-2f67-11b2-a85c-e98659a63c5c.ibm.com>
Fri, 17 Nov 2023 06:55:43 +0000 (12:25 +0530)
Fixes: https://tracker.ceph.com/issues/62969
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit a29e6a86733fbf8554089dd486ca6c9cf748886b)

monitoring/ceph-mixin/dashboards_out/ceph-cluster.json

index 2cd151ae1ff89d465fc4e8f62cb6cb90707491da..97a90bb36ea0df7fc2e01c3a83b91b1304e1e24a 100644 (file)
         }
       ],
       "title": "OSDs",
-      "type": "stat"
+      "type": "stat",
+      "fieldConfig": {
+        "defaults": {
+          "mappings": [],
+          "thresholds": {
+            "mode": "percentage",
+            "steps": [
+              {
+                "color": "green",
+                "value": null
+              }
+            ]
+          }
+        },
+        "overrides": [
+          {
+            "matcher": {
+              "id": "byName",
+              "options": "All"
+            },
+            "properties": [
+              {
+                "id": "color",
+                "value": {
+                  "mode": "fixed"
+                }
+              }
+            ]
+          },
+          {
+            "matcher": {
+              "id": "byName",
+              "options": "Out"
+            },
+            "properties": [
+              {
+                "id": "thresholds",
+                "value": {
+                  "mode": "percentage",
+                  "steps": [
+                    {
+                      "color": "green",
+                      "value": null
+                    },
+                    {
+                      "color": "orange",
+                      "value": 0.1
+                    },
+                    {
+                      "value": 10,
+                      "color": "red"
+                    }
+                  ]
+                }
+              }
+            ]
+          },
+          {
+            "matcher": {
+              "id": "byName",
+              "options": "Down"
+            },
+            "properties": [
+              {
+                "id": "thresholds",
+                "value": {
+                  "mode": "percentage",
+                  "steps": [
+                    {
+                      "color": "green",
+                      "value": null
+                    },
+                    {
+                      "color": "orange",
+                      "value": 0.1
+                    },
+                    {
+                      "value": 10,
+                      "color": "red"
+                    }
+                  ]
+                }
+              }
+            ]
+          }
+        ]
+      }
     },
     {
       "clusterName": "",
   "timezone": "",
   "title": "Ceph - Cluster",
   "version": 13
-    }
+}