From e56bed284eddeae51c1308463d48076966c1566b Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Fri, 12 Dec 2025 20:50:41 -0300 Subject: [PATCH] atlas overview: refine alert thresholds and availability colors --- scripts/dashboards_render_atlas.py | 30 ++++++---- .../monitoring/dashboards/atlas-overview.json | 58 ++++++++++++++----- .../grafana-dashboard-overview.yaml | 58 ++++++++++++++----- 3 files changed, 109 insertions(+), 37 deletions(-) diff --git a/scripts/dashboards_render_atlas.py b/scripts/dashboards_render_atlas.py index 0cab4ac..47f167e 100644 --- a/scripts/dashboards_render_atlas.py +++ b/scripts/dashboards_render_atlas.py @@ -234,9 +234,9 @@ UPTIME_PERCENT_THRESHOLDS = { "mode": "absolute", "steps": [ {"color": "red", "value": None}, - {"color": "orange", "value": 0.99}, - {"color": "yellow", "value": 0.999}, - {"color": "green", "value": 0.9999}, + {"color": "orange", "value": 0.999}, + {"color": "yellow", "value": 0.9999}, + {"color": "green", "value": 0.99999}, ], } PROBLEM_TABLE_EXPR = ( @@ -686,8 +686,10 @@ def build_overview(): "thresholds": { "mode": "absolute", "steps": [ - {"color": "green", "value": 0}, - {"color": "red", "value": 1}, + {"color": "green", "value": None}, + {"color": "yellow", "value": 1}, + {"color": "orange", "value": 2}, + {"color": "red", "value": 3}, ], }, "links": link_to("atlas-pods"), @@ -700,8 +702,10 @@ def build_overview(): "thresholds": { "mode": "absolute", "steps": [ - {"color": "green", "value": 0}, - {"color": "red", "value": 1}, + {"color": "green", "value": None}, + {"color": "yellow", "value": 1}, + {"color": "orange", "value": 2}, + {"color": "red", "value": 3}, ], }, "links": link_to("atlas-pods"), @@ -724,8 +728,10 @@ def build_overview(): "thresholds": { "mode": "absolute", "steps": [ - {"color": "green", "value": 0}, - {"color": "red", "value": 1}, + {"color": "green", "value": None}, + {"color": "yellow", "value": 1}, + {"color": "orange", "value": 2}, + {"color": "red", "value": 3}, ], }, "links": link_to("atlas-pods"), @@ -738,8 +744,10 @@ def build_overview(): "thresholds": { "mode": "absolute", "steps": [ - {"color": "green", "value": 0}, - {"color": "red", "value": 1}, + {"color": "green", "value": None}, + {"color": "yellow", "value": 1}, + {"color": "orange", "value": 2}, + {"color": "red", "value": 3}, ], }, "links": link_to("atlas-pods"), diff --git a/services/monitoring/dashboards/atlas-overview.json b/services/monitoring/dashboards/atlas-overview.json index 394d852..fe694e2 100644 --- a/services/monitoring/dashboards/atlas-overview.json +++ b/services/monitoring/dashboards/atlas-overview.json @@ -91,11 +91,19 @@ "steps": [ { "color": "green", - "value": 0 + "value": null + }, + { + "color": "yellow", + "value": 1 + }, + { + "color": "orange", + "value": 2 }, { "color": "red", - "value": 1 + "value": 3 } ] }, @@ -158,11 +166,19 @@ "steps": [ { "color": "green", - "value": 0 + "value": null + }, + { + "color": "yellow", + "value": 1 + }, + { + "color": "orange", + "value": 2 }, { "color": "red", - "value": 1 + "value": 3 } ] }, @@ -229,15 +245,15 @@ }, { "color": "orange", - "value": 0.99 - }, - { - "color": "yellow", "value": 0.999 }, { - "color": "green", + "color": "yellow", "value": 0.9999 + }, + { + "color": "green", + "value": 0.99999 } ] }, @@ -294,11 +310,19 @@ "steps": [ { "color": "green", - "value": 0 + "value": null + }, + { + "color": "yellow", + "value": 1 + }, + { + "color": "orange", + "value": 2 }, { "color": "red", - "value": 1 + "value": 3 } ] }, @@ -361,11 +385,19 @@ "steps": [ { "color": "green", - "value": 0 + "value": null + }, + { + "color": "yellow", + "value": 1 + }, + { + "color": "orange", + "value": 2 }, { "color": "red", - "value": 1 + "value": 3 } ] }, diff --git a/services/monitoring/grafana-dashboard-overview.yaml b/services/monitoring/grafana-dashboard-overview.yaml index 97b62bd..2ae043e 100644 --- a/services/monitoring/grafana-dashboard-overview.yaml +++ b/services/monitoring/grafana-dashboard-overview.yaml @@ -100,11 +100,19 @@ data: "steps": [ { "color": "green", - "value": 0 + "value": null + }, + { + "color": "yellow", + "value": 1 + }, + { + "color": "orange", + "value": 2 }, { "color": "red", - "value": 1 + "value": 3 } ] }, @@ -167,11 +175,19 @@ data: "steps": [ { "color": "green", - "value": 0 + "value": null + }, + { + "color": "yellow", + "value": 1 + }, + { + "color": "orange", + "value": 2 }, { "color": "red", - "value": 1 + "value": 3 } ] }, @@ -238,15 +254,15 @@ data: }, { "color": "orange", - "value": 0.99 - }, - { - "color": "yellow", "value": 0.999 }, { - "color": "green", + "color": "yellow", "value": 0.9999 + }, + { + "color": "green", + "value": 0.99999 } ] }, @@ -303,11 +319,19 @@ data: "steps": [ { "color": "green", - "value": 0 + "value": null + }, + { + "color": "yellow", + "value": 1 + }, + { + "color": "orange", + "value": 2 }, { "color": "red", - "value": 1 + "value": 3 } ] }, @@ -370,11 +394,19 @@ data: "steps": [ { "color": "green", - "value": 0 + "value": null + }, + { + "color": "yellow", + "value": 1 + }, + { + "color": "orange", + "value": 2 }, { "color": "red", - "value": 1 + "value": 3 } ] },