monitoring: pack overview/power stats horizontally
This commit is contained in:
parent
08077f46c6
commit
931ee5944d
@ -698,6 +698,8 @@ def stat_panel(
|
|||||||
description=None,
|
description=None,
|
||||||
orientation=None,
|
orientation=None,
|
||||||
wide_layout=None,
|
wide_layout=None,
|
||||||
|
graph_mode="area",
|
||||||
|
justify_mode="center",
|
||||||
):
|
):
|
||||||
"""Return a Grafana stat panel definition."""
|
"""Return a Grafana stat panel definition."""
|
||||||
defaults = {
|
defaults = {
|
||||||
@ -730,8 +732,8 @@ def stat_panel(
|
|||||||
"fieldConfig": {"defaults": defaults, "overrides": field_overrides or []},
|
"fieldConfig": {"defaults": defaults, "overrides": field_overrides or []},
|
||||||
"options": {
|
"options": {
|
||||||
"colorMode": "value",
|
"colorMode": "value",
|
||||||
"graphMode": "area",
|
"graphMode": graph_mode,
|
||||||
"justifyMode": "center",
|
"justifyMode": justify_mode,
|
||||||
"reduceOptions": {"calcs": ["lastNotNull"], "fields": "", "values": False},
|
"reduceOptions": {"calcs": ["lastNotNull"], "fields": "", "values": False},
|
||||||
"textMode": text_mode,
|
"textMode": text_mode,
|
||||||
},
|
},
|
||||||
@ -1388,6 +1390,8 @@ def build_overview():
|
|||||||
description="Per-UPS live snapshot: current draw, discharge, and charging/discharging status.",
|
description="Per-UPS live snapshot: current draw, discharge, and charging/discharging status.",
|
||||||
orientation="horizontal",
|
orientation="horizontal",
|
||||||
wide_layout=True,
|
wide_layout=True,
|
||||||
|
graph_mode="none",
|
||||||
|
justify_mode="auto",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
panels.append(
|
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).",
|
description="Current tent values on one row: temperature (C/F), humidity (RH), and pressure proxy (VPD).",
|
||||||
orientation="horizontal",
|
orientation="horizontal",
|
||||||
wide_layout=True,
|
wide_layout=True,
|
||||||
|
graph_mode="none",
|
||||||
|
justify_mode="auto",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
panels.append(
|
panels.append(
|
||||||
@ -1495,6 +1501,8 @@ def build_overview():
|
|||||||
links=link_to("atlas-power"),
|
links=link_to("atlas-power"),
|
||||||
orientation="horizontal",
|
orientation="horizontal",
|
||||||
wide_layout=True,
|
wide_layout=True,
|
||||||
|
graph_mode="none",
|
||||||
|
justify_mode="auto",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
panels.append(
|
panels.append(
|
||||||
@ -3284,6 +3292,8 @@ def build_power_dashboard():
|
|||||||
],
|
],
|
||||||
orientation="horizontal",
|
orientation="horizontal",
|
||||||
wide_layout=True,
|
wide_layout=True,
|
||||||
|
graph_mode="none",
|
||||||
|
justify_mode="auto",
|
||||||
description=(
|
description=(
|
||||||
"Per-UPS live snapshot: current draw in watts, estimated battery runtime if discharge started now, and charging/discharging status."
|
"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",
|
orientation="horizontal",
|
||||||
wide_layout=True,
|
wide_layout=True,
|
||||||
|
graph_mode="none",
|
||||||
|
justify_mode="auto",
|
||||||
description="Current tent temperature in C/F, humidity, and pressure proxy (VPD kPa).",
|
description="Current tent temperature in C/F, humidity, and pressure proxy (VPD kPa).",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -3398,6 +3410,8 @@ def build_power_dashboard():
|
|||||||
},
|
},
|
||||||
orientation="horizontal",
|
orientation="horizontal",
|
||||||
wide_layout=True,
|
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.",
|
description="Current fan activity levels (0-10): inside outlet, inside inlet, outside inlet, and interior fans.",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@ -1272,8 +1272,8 @@
|
|||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"colorMode": "value",
|
"colorMode": "value",
|
||||||
"graphMode": "area",
|
"graphMode": "none",
|
||||||
"justifyMode": "center",
|
"justifyMode": "auto",
|
||||||
"reduceOptions": {
|
"reduceOptions": {
|
||||||
"calcs": [
|
"calcs": [
|
||||||
"lastNotNull"
|
"lastNotNull"
|
||||||
@ -1466,8 +1466,8 @@
|
|||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"colorMode": "value",
|
"colorMode": "value",
|
||||||
"graphMode": "area",
|
"graphMode": "none",
|
||||||
"justifyMode": "center",
|
"justifyMode": "auto",
|
||||||
"reduceOptions": {
|
"reduceOptions": {
|
||||||
"calcs": [
|
"calcs": [
|
||||||
"lastNotNull"
|
"lastNotNull"
|
||||||
@ -1653,8 +1653,8 @@
|
|||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"colorMode": "value",
|
"colorMode": "value",
|
||||||
"graphMode": "area",
|
"graphMode": "none",
|
||||||
"justifyMode": "center",
|
"justifyMode": "auto",
|
||||||
"reduceOptions": {
|
"reduceOptions": {
|
||||||
"calcs": [
|
"calcs": [
|
||||||
"lastNotNull"
|
"lastNotNull"
|
||||||
|
|||||||
@ -206,8 +206,8 @@
|
|||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"colorMode": "value",
|
"colorMode": "value",
|
||||||
"graphMode": "area",
|
"graphMode": "none",
|
||||||
"justifyMode": "center",
|
"justifyMode": "auto",
|
||||||
"reduceOptions": {
|
"reduceOptions": {
|
||||||
"calcs": [
|
"calcs": [
|
||||||
"lastNotNull"
|
"lastNotNull"
|
||||||
@ -387,8 +387,8 @@
|
|||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"colorMode": "value",
|
"colorMode": "value",
|
||||||
"graphMode": "area",
|
"graphMode": "none",
|
||||||
"justifyMode": "center",
|
"justifyMode": "auto",
|
||||||
"reduceOptions": {
|
"reduceOptions": {
|
||||||
"calcs": [
|
"calcs": [
|
||||||
"lastNotNull"
|
"lastNotNull"
|
||||||
@ -577,8 +577,8 @@
|
|||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"colorMode": "value",
|
"colorMode": "value",
|
||||||
"graphMode": "area",
|
"graphMode": "none",
|
||||||
"justifyMode": "center",
|
"justifyMode": "auto",
|
||||||
"reduceOptions": {
|
"reduceOptions": {
|
||||||
"calcs": [
|
"calcs": [
|
||||||
"lastNotNull"
|
"lastNotNull"
|
||||||
|
|||||||
@ -1281,8 +1281,8 @@ data:
|
|||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"colorMode": "value",
|
"colorMode": "value",
|
||||||
"graphMode": "area",
|
"graphMode": "none",
|
||||||
"justifyMode": "center",
|
"justifyMode": "auto",
|
||||||
"reduceOptions": {
|
"reduceOptions": {
|
||||||
"calcs": [
|
"calcs": [
|
||||||
"lastNotNull"
|
"lastNotNull"
|
||||||
@ -1475,8 +1475,8 @@ data:
|
|||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"colorMode": "value",
|
"colorMode": "value",
|
||||||
"graphMode": "area",
|
"graphMode": "none",
|
||||||
"justifyMode": "center",
|
"justifyMode": "auto",
|
||||||
"reduceOptions": {
|
"reduceOptions": {
|
||||||
"calcs": [
|
"calcs": [
|
||||||
"lastNotNull"
|
"lastNotNull"
|
||||||
@ -1662,8 +1662,8 @@ data:
|
|||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"colorMode": "value",
|
"colorMode": "value",
|
||||||
"graphMode": "area",
|
"graphMode": "none",
|
||||||
"justifyMode": "center",
|
"justifyMode": "auto",
|
||||||
"reduceOptions": {
|
"reduceOptions": {
|
||||||
"calcs": [
|
"calcs": [
|
||||||
"lastNotNull"
|
"lastNotNull"
|
||||||
|
|||||||
@ -215,8 +215,8 @@ data:
|
|||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"colorMode": "value",
|
"colorMode": "value",
|
||||||
"graphMode": "area",
|
"graphMode": "none",
|
||||||
"justifyMode": "center",
|
"justifyMode": "auto",
|
||||||
"reduceOptions": {
|
"reduceOptions": {
|
||||||
"calcs": [
|
"calcs": [
|
||||||
"lastNotNull"
|
"lastNotNull"
|
||||||
@ -396,8 +396,8 @@ data:
|
|||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"colorMode": "value",
|
"colorMode": "value",
|
||||||
"graphMode": "area",
|
"graphMode": "none",
|
||||||
"justifyMode": "center",
|
"justifyMode": "auto",
|
||||||
"reduceOptions": {
|
"reduceOptions": {
|
||||||
"calcs": [
|
"calcs": [
|
||||||
"lastNotNull"
|
"lastNotNull"
|
||||||
@ -586,8 +586,8 @@ data:
|
|||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"colorMode": "value",
|
"colorMode": "value",
|
||||||
"graphMode": "area",
|
"graphMode": "none",
|
||||||
"justifyMode": "center",
|
"justifyMode": "auto",
|
||||||
"reduceOptions": {
|
"reduceOptions": {
|
||||||
"calcs": [
|
"calcs": [
|
||||||
"lastNotNull"
|
"lastNotNull"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user