From 931ee5944d5b1180c9ec764e6176c7aba4664a2c Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Sun, 12 Apr 2026 19:23:10 -0300 Subject: [PATCH] monitoring: pack overview/power stats horizontally --- scripts/dashboards_render_atlas.py | 18 ++++++++++++++++-- .../monitoring/dashboards/atlas-overview.json | 12 ++++++------ .../monitoring/dashboards/atlas-power.json | 12 ++++++------ .../monitoring/grafana-dashboard-overview.yaml | 12 ++++++------ .../monitoring/grafana-dashboard-power.yaml | 12 ++++++------ 5 files changed, 40 insertions(+), 26 deletions(-) diff --git a/scripts/dashboards_render_atlas.py b/scripts/dashboards_render_atlas.py index 99fe4da7..25743ec2 100644 --- a/scripts/dashboards_render_atlas.py +++ b/scripts/dashboards_render_atlas.py @@ -698,6 +698,8 @@ def stat_panel( description=None, orientation=None, wide_layout=None, + graph_mode="area", + justify_mode="center", ): """Return a Grafana stat panel definition.""" defaults = { @@ -730,8 +732,8 @@ def stat_panel( "fieldConfig": {"defaults": defaults, "overrides": field_overrides or []}, "options": { "colorMode": "value", - "graphMode": "area", - "justifyMode": "center", + "graphMode": graph_mode, + "justifyMode": justify_mode, "reduceOptions": {"calcs": ["lastNotNull"], "fields": "", "values": False}, "textMode": text_mode, }, @@ -1388,6 +1390,8 @@ def build_overview(): description="Per-UPS live snapshot: current draw, discharge, and charging/discharging status.", orientation="horizontal", wide_layout=True, + graph_mode="none", + justify_mode="auto", ) ) panels.append( @@ -1432,6 +1436,8 @@ def build_overview(): description="Current tent values on one row: temperature (C/F), humidity (RH), and pressure proxy (VPD).", orientation="horizontal", wide_layout=True, + graph_mode="none", + justify_mode="auto", ) ) panels.append( @@ -1495,6 +1501,8 @@ def build_overview(): links=link_to("atlas-power"), orientation="horizontal", wide_layout=True, + graph_mode="none", + justify_mode="auto", ) ) panels.append( @@ -3284,6 +3292,8 @@ def build_power_dashboard(): ], orientation="horizontal", wide_layout=True, + graph_mode="none", + justify_mode="auto", description=( "Per-UPS live snapshot: current draw in watts, estimated battery runtime if discharge started now, and charging/discharging status." ), @@ -3329,6 +3339,8 @@ def build_power_dashboard(): ], orientation="horizontal", wide_layout=True, + graph_mode="none", + justify_mode="auto", description="Current tent temperature in C/F, humidity, and pressure proxy (VPD kPa).", ) ) @@ -3398,6 +3410,8 @@ def build_power_dashboard(): }, orientation="horizontal", wide_layout=True, + graph_mode="none", + justify_mode="auto", description="Current fan activity levels (0-10): inside outlet, inside inlet, outside inlet, and interior fans.", ) ) diff --git a/services/monitoring/dashboards/atlas-overview.json b/services/monitoring/dashboards/atlas-overview.json index 36358fd7..2c0beb71 100644 --- a/services/monitoring/dashboards/atlas-overview.json +++ b/services/monitoring/dashboards/atlas-overview.json @@ -1272,8 +1272,8 @@ }, "options": { "colorMode": "value", - "graphMode": "area", - "justifyMode": "center", + "graphMode": "none", + "justifyMode": "auto", "reduceOptions": { "calcs": [ "lastNotNull" @@ -1466,8 +1466,8 @@ }, "options": { "colorMode": "value", - "graphMode": "area", - "justifyMode": "center", + "graphMode": "none", + "justifyMode": "auto", "reduceOptions": { "calcs": [ "lastNotNull" @@ -1653,8 +1653,8 @@ }, "options": { "colorMode": "value", - "graphMode": "area", - "justifyMode": "center", + "graphMode": "none", + "justifyMode": "auto", "reduceOptions": { "calcs": [ "lastNotNull" diff --git a/services/monitoring/dashboards/atlas-power.json b/services/monitoring/dashboards/atlas-power.json index 5925d718..bd2911f4 100644 --- a/services/monitoring/dashboards/atlas-power.json +++ b/services/monitoring/dashboards/atlas-power.json @@ -206,8 +206,8 @@ }, "options": { "colorMode": "value", - "graphMode": "area", - "justifyMode": "center", + "graphMode": "none", + "justifyMode": "auto", "reduceOptions": { "calcs": [ "lastNotNull" @@ -387,8 +387,8 @@ }, "options": { "colorMode": "value", - "graphMode": "area", - "justifyMode": "center", + "graphMode": "none", + "justifyMode": "auto", "reduceOptions": { "calcs": [ "lastNotNull" @@ -577,8 +577,8 @@ }, "options": { "colorMode": "value", - "graphMode": "area", - "justifyMode": "center", + "graphMode": "none", + "justifyMode": "auto", "reduceOptions": { "calcs": [ "lastNotNull" diff --git a/services/monitoring/grafana-dashboard-overview.yaml b/services/monitoring/grafana-dashboard-overview.yaml index 1aa6f1a4..63389793 100644 --- a/services/monitoring/grafana-dashboard-overview.yaml +++ b/services/monitoring/grafana-dashboard-overview.yaml @@ -1281,8 +1281,8 @@ data: }, "options": { "colorMode": "value", - "graphMode": "area", - "justifyMode": "center", + "graphMode": "none", + "justifyMode": "auto", "reduceOptions": { "calcs": [ "lastNotNull" @@ -1475,8 +1475,8 @@ data: }, "options": { "colorMode": "value", - "graphMode": "area", - "justifyMode": "center", + "graphMode": "none", + "justifyMode": "auto", "reduceOptions": { "calcs": [ "lastNotNull" @@ -1662,8 +1662,8 @@ data: }, "options": { "colorMode": "value", - "graphMode": "area", - "justifyMode": "center", + "graphMode": "none", + "justifyMode": "auto", "reduceOptions": { "calcs": [ "lastNotNull" diff --git a/services/monitoring/grafana-dashboard-power.yaml b/services/monitoring/grafana-dashboard-power.yaml index 3f54f695..780d5518 100644 --- a/services/monitoring/grafana-dashboard-power.yaml +++ b/services/monitoring/grafana-dashboard-power.yaml @@ -215,8 +215,8 @@ data: }, "options": { "colorMode": "value", - "graphMode": "area", - "justifyMode": "center", + "graphMode": "none", + "justifyMode": "auto", "reduceOptions": { "calcs": [ "lastNotNull" @@ -396,8 +396,8 @@ data: }, "options": { "colorMode": "value", - "graphMode": "area", - "justifyMode": "center", + "graphMode": "none", + "justifyMode": "auto", "reduceOptions": { "calcs": [ "lastNotNull" @@ -586,8 +586,8 @@ data: }, "options": { "colorMode": "value", - "graphMode": "area", - "justifyMode": "center", + "graphMode": "none", + "justifyMode": "auto", "reduceOptions": { "calcs": [ "lastNotNull"