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