monitoring: prevent compact UPS card value clipping
This commit is contained in:
parent
f6b97ac82e
commit
ef352cbdc1
@ -1164,6 +1164,7 @@ def canvas_two_metric_row_panel(
|
|||||||
description=None,
|
description=None,
|
||||||
metric_size=30,
|
metric_size=30,
|
||||||
metric_top=10,
|
metric_top=10,
|
||||||
|
metric_height=42,
|
||||||
color_fields=None,
|
color_fields=None,
|
||||||
thresholds=None,
|
thresholds=None,
|
||||||
):
|
):
|
||||||
@ -1181,7 +1182,7 @@ def canvas_two_metric_row_panel(
|
|||||||
"left": left,
|
"left": left,
|
||||||
"top": top,
|
"top": top,
|
||||||
"width": 146,
|
"width": 146,
|
||||||
"height": 42,
|
"height": metric_height,
|
||||||
},
|
},
|
||||||
"background": {"color": {"fixed": "transparent"}},
|
"background": {"color": {"fixed": "transparent"}},
|
||||||
"border": {"color": {"fixed": "transparent"}},
|
"border": {"color": {"fixed": "transparent"}},
|
||||||
@ -1835,7 +1836,9 @@ def build_overview():
|
|||||||
40,
|
40,
|
||||||
f"{ANANKE_UPS_DB_NAME} UPS Current",
|
f"{ANANKE_UPS_DB_NAME} UPS Current",
|
||||||
{"h": 2, "w": 6, "x": 0, "y": 7},
|
{"h": 2, "w": 6, "x": 0, "y": 7},
|
||||||
metric_size=30,
|
metric_size=24,
|
||||||
|
metric_top=8,
|
||||||
|
metric_height=34,
|
||||||
targets=[
|
targets=[
|
||||||
{"refId": "A", "expr": ANANKE_UPS_DRAW_WATTS_DB, "legendFormat": "Draw", "instant": True},
|
{"refId": "A", "expr": ANANKE_UPS_DRAW_WATTS_DB, "legendFormat": "Draw", "instant": True},
|
||||||
{"refId": "B", "expr": ANANKE_UPS_RUNTIME_DB, "legendFormat": "Runtime", "instant": True},
|
{"refId": "B", "expr": ANANKE_UPS_RUNTIME_DB, "legendFormat": "Runtime", "instant": True},
|
||||||
|
|||||||
@ -1163,9 +1163,9 @@
|
|||||||
},
|
},
|
||||||
"placement": {
|
"placement": {
|
||||||
"left": 12,
|
"left": 12,
|
||||||
"top": 10,
|
"top": 8,
|
||||||
"width": 146,
|
"width": 146,
|
||||||
"height": 42
|
"height": 34
|
||||||
},
|
},
|
||||||
"background": {
|
"background": {
|
||||||
"color": {
|
"color": {
|
||||||
@ -1180,7 +1180,7 @@
|
|||||||
"config": {
|
"config": {
|
||||||
"align": "center",
|
"align": "center",
|
||||||
"valign": "middle",
|
"valign": "middle",
|
||||||
"size": 30,
|
"size": 24,
|
||||||
"color": {
|
"color": {
|
||||||
"field": "Draw",
|
"field": "Draw",
|
||||||
"fixed": "text"
|
"fixed": "text"
|
||||||
@ -1202,9 +1202,9 @@
|
|||||||
},
|
},
|
||||||
"placement": {
|
"placement": {
|
||||||
"left": 168,
|
"left": 168,
|
||||||
"top": 10,
|
"top": 8,
|
||||||
"width": 146,
|
"width": 146,
|
||||||
"height": 42
|
"height": 34
|
||||||
},
|
},
|
||||||
"background": {
|
"background": {
|
||||||
"color": {
|
"color": {
|
||||||
@ -1219,7 +1219,7 @@
|
|||||||
"config": {
|
"config": {
|
||||||
"align": "center",
|
"align": "center",
|
||||||
"valign": "middle",
|
"valign": "middle",
|
||||||
"size": 30,
|
"size": 24,
|
||||||
"color": {
|
"color": {
|
||||||
"field": "Runtime",
|
"field": "Runtime",
|
||||||
"fixed": "text"
|
"fixed": "text"
|
||||||
|
|||||||
@ -1172,9 +1172,9 @@ data:
|
|||||||
},
|
},
|
||||||
"placement": {
|
"placement": {
|
||||||
"left": 12,
|
"left": 12,
|
||||||
"top": 10,
|
"top": 8,
|
||||||
"width": 146,
|
"width": 146,
|
||||||
"height": 42
|
"height": 34
|
||||||
},
|
},
|
||||||
"background": {
|
"background": {
|
||||||
"color": {
|
"color": {
|
||||||
@ -1189,7 +1189,7 @@ data:
|
|||||||
"config": {
|
"config": {
|
||||||
"align": "center",
|
"align": "center",
|
||||||
"valign": "middle",
|
"valign": "middle",
|
||||||
"size": 30,
|
"size": 24,
|
||||||
"color": {
|
"color": {
|
||||||
"field": "Draw",
|
"field": "Draw",
|
||||||
"fixed": "text"
|
"fixed": "text"
|
||||||
@ -1211,9 +1211,9 @@ data:
|
|||||||
},
|
},
|
||||||
"placement": {
|
"placement": {
|
||||||
"left": 168,
|
"left": 168,
|
||||||
"top": 10,
|
"top": 8,
|
||||||
"width": 146,
|
"width": 146,
|
||||||
"height": 42
|
"height": 34
|
||||||
},
|
},
|
||||||
"background": {
|
"background": {
|
||||||
"color": {
|
"color": {
|
||||||
@ -1228,7 +1228,7 @@ data:
|
|||||||
"config": {
|
"config": {
|
||||||
"align": "center",
|
"align": "center",
|
||||||
"valign": "middle",
|
"valign": "middle",
|
||||||
"size": 30,
|
"size": 24,
|
||||||
"color": {
|
"color": {
|
||||||
"field": "Runtime",
|
"field": "Runtime",
|
||||||
"fixed": "text"
|
"fixed": "text"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user