monitoring: pack overview/power stats horizontally

This commit is contained in:
Brad Stein 2026-04-12 19:23:10 -03:00
parent 08077f46c6
commit 931ee5944d
5 changed files with 40 additions and 26 deletions

View File

@ -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.",
)
)

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"