From f6b97ac82ef5e658be6cb9180ae21821905d6216 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Mon, 13 Apr 2026 05:00:01 -0300 Subject: [PATCH] monitoring: fix clipped values in compact split panel --- scripts/dashboards_render_atlas.py | 5 +++-- .../monitoring/dashboards/atlas-overview.json | 16 ++++++++-------- .../monitoring/grafana-dashboard-overview.yaml | 16 ++++++++-------- 3 files changed, 19 insertions(+), 18 deletions(-) diff --git a/scripts/dashboards_render_atlas.py b/scripts/dashboards_render_atlas.py index 96a7272a..90b1bdf5 100644 --- a/scripts/dashboards_render_atlas.py +++ b/scripts/dashboards_render_atlas.py @@ -1163,6 +1163,7 @@ def canvas_two_metric_row_panel( links=None, description=None, metric_size=30, + metric_top=10, color_fields=None, thresholds=None, ): @@ -1229,8 +1230,8 @@ def canvas_two_metric_row_panel( "type": "frame", "name": f"{title} frame", "elements": [ - metric_element("Cell 1", targets[0]["legendFormat"], 12, 38, color_fields[0]), - metric_element("Cell 2", targets[1]["legendFormat"], 168, 38, color_fields[1]), + metric_element("Cell 1", targets[0]["legendFormat"], 12, metric_top, color_fields[0]), + metric_element("Cell 2", targets[1]["legendFormat"], 168, metric_top, color_fields[1]), ], "background": {"color": {"fixed": "transparent"}}, "border": {"color": {"fixed": "transparent"}}, diff --git a/services/monitoring/dashboards/atlas-overview.json b/services/monitoring/dashboards/atlas-overview.json index 07412132..541b9ebf 100644 --- a/services/monitoring/dashboards/atlas-overview.json +++ b/services/monitoring/dashboards/atlas-overview.json @@ -1163,7 +1163,7 @@ }, "placement": { "left": 12, - "top": 38, + "top": 10, "width": 146, "height": 42 }, @@ -1202,7 +1202,7 @@ }, "placement": { "left": 168, - "top": 38, + "top": 10, "width": 146, "height": 42 }, @@ -1346,7 +1346,7 @@ }, "placement": { "left": 12, - "top": 38, + "top": 10, "width": 146, "height": 42 }, @@ -1385,7 +1385,7 @@ }, "placement": { "left": 168, - "top": 38, + "top": 10, "width": 146, "height": 42 }, @@ -1583,7 +1583,7 @@ }, "placement": { "left": 12, - "top": 38, + "top": 10, "width": 146, "height": 42 }, @@ -1622,7 +1622,7 @@ }, "placement": { "left": 168, - "top": 38, + "top": 10, "width": 146, "height": 42 }, @@ -1766,7 +1766,7 @@ }, "placement": { "left": 12, - "top": 38, + "top": 10, "width": 146, "height": 42 }, @@ -1805,7 +1805,7 @@ }, "placement": { "left": 168, - "top": 38, + "top": 10, "width": 146, "height": 42 }, diff --git a/services/monitoring/grafana-dashboard-overview.yaml b/services/monitoring/grafana-dashboard-overview.yaml index 112b24a1..e3878207 100644 --- a/services/monitoring/grafana-dashboard-overview.yaml +++ b/services/monitoring/grafana-dashboard-overview.yaml @@ -1172,7 +1172,7 @@ data: }, "placement": { "left": 12, - "top": 38, + "top": 10, "width": 146, "height": 42 }, @@ -1211,7 +1211,7 @@ data: }, "placement": { "left": 168, - "top": 38, + "top": 10, "width": 146, "height": 42 }, @@ -1355,7 +1355,7 @@ data: }, "placement": { "left": 12, - "top": 38, + "top": 10, "width": 146, "height": 42 }, @@ -1394,7 +1394,7 @@ data: }, "placement": { "left": 168, - "top": 38, + "top": 10, "width": 146, "height": 42 }, @@ -1592,7 +1592,7 @@ data: }, "placement": { "left": 12, - "top": 38, + "top": 10, "width": 146, "height": 42 }, @@ -1631,7 +1631,7 @@ data: }, "placement": { "left": 168, - "top": 38, + "top": 10, "width": 146, "height": 42 }, @@ -1775,7 +1775,7 @@ data: }, "placement": { "left": 12, - "top": 38, + "top": 10, "width": 146, "height": 42 }, @@ -1814,7 +1814,7 @@ data: }, "placement": { "left": 168, - "top": 38, + "top": 10, "width": 146, "height": 42 },