From ef352cbdc10f54ecefa142574513d6270a3163b9 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Mon, 13 Apr 2026 05:16:37 -0300 Subject: [PATCH] monitoring: prevent compact UPS card value clipping --- scripts/dashboards_render_atlas.py | 7 +++++-- services/monitoring/dashboards/atlas-overview.json | 12 ++++++------ services/monitoring/grafana-dashboard-overview.yaml | 12 ++++++------ 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/scripts/dashboards_render_atlas.py b/scripts/dashboards_render_atlas.py index 90b1bdf5..f775ef15 100644 --- a/scripts/dashboards_render_atlas.py +++ b/scripts/dashboards_render_atlas.py @@ -1164,6 +1164,7 @@ def canvas_two_metric_row_panel( description=None, metric_size=30, metric_top=10, + metric_height=42, color_fields=None, thresholds=None, ): @@ -1181,7 +1182,7 @@ def canvas_two_metric_row_panel( "left": left, "top": top, "width": 146, - "height": 42, + "height": metric_height, }, "background": {"color": {"fixed": "transparent"}}, "border": {"color": {"fixed": "transparent"}}, @@ -1835,7 +1836,9 @@ def build_overview(): 40, f"{ANANKE_UPS_DB_NAME} UPS Current", {"h": 2, "w": 6, "x": 0, "y": 7}, - metric_size=30, + metric_size=24, + metric_top=8, + metric_height=34, targets=[ {"refId": "A", "expr": ANANKE_UPS_DRAW_WATTS_DB, "legendFormat": "Draw", "instant": True}, {"refId": "B", "expr": ANANKE_UPS_RUNTIME_DB, "legendFormat": "Runtime", "instant": True}, diff --git a/services/monitoring/dashboards/atlas-overview.json b/services/monitoring/dashboards/atlas-overview.json index 541b9ebf..2337ce5e 100644 --- a/services/monitoring/dashboards/atlas-overview.json +++ b/services/monitoring/dashboards/atlas-overview.json @@ -1163,9 +1163,9 @@ }, "placement": { "left": 12, - "top": 10, + "top": 8, "width": 146, - "height": 42 + "height": 34 }, "background": { "color": { @@ -1180,7 +1180,7 @@ "config": { "align": "center", "valign": "middle", - "size": 30, + "size": 24, "color": { "field": "Draw", "fixed": "text" @@ -1202,9 +1202,9 @@ }, "placement": { "left": 168, - "top": 10, + "top": 8, "width": 146, - "height": 42 + "height": 34 }, "background": { "color": { @@ -1219,7 +1219,7 @@ "config": { "align": "center", "valign": "middle", - "size": 30, + "size": 24, "color": { "field": "Runtime", "fixed": "text" diff --git a/services/monitoring/grafana-dashboard-overview.yaml b/services/monitoring/grafana-dashboard-overview.yaml index e3878207..e6f5650d 100644 --- a/services/monitoring/grafana-dashboard-overview.yaml +++ b/services/monitoring/grafana-dashboard-overview.yaml @@ -1172,9 +1172,9 @@ data: }, "placement": { "left": 12, - "top": 10, + "top": 8, "width": 146, - "height": 42 + "height": 34 }, "background": { "color": { @@ -1189,7 +1189,7 @@ data: "config": { "align": "center", "valign": "middle", - "size": 30, + "size": 24, "color": { "field": "Draw", "fixed": "text" @@ -1211,9 +1211,9 @@ data: }, "placement": { "left": 168, - "top": 10, + "top": 8, "width": 146, - "height": 42 + "height": 34 }, "background": { "color": { @@ -1228,7 +1228,7 @@ data: "config": { "align": "center", "valign": "middle", - "size": 30, + "size": 24, "color": { "field": "Runtime", "fixed": "text"