monitoring: align ups and climate cards to postgres two-stat pattern
This commit is contained in:
parent
56cca6df83
commit
28756ceda8
@ -1157,96 +1157,6 @@ def canvas_metric_grid_panel(
|
|||||||
return panel
|
return panel
|
||||||
|
|
||||||
|
|
||||||
def overview_two_value_panel(
|
|
||||||
panel_id,
|
|
||||||
title,
|
|
||||||
grid,
|
|
||||||
*,
|
|
||||||
left_target,
|
|
||||||
right_target,
|
|
||||||
field_overrides=None,
|
|
||||||
links=None,
|
|
||||||
description=None,
|
|
||||||
thresholds=None,
|
|
||||||
):
|
|
||||||
"""Return a dedicated two-value overview canvas panel."""
|
|
||||||
|
|
||||||
top = 10
|
|
||||||
size = 30
|
|
||||||
width = 146
|
|
||||||
height = 42
|
|
||||||
left_x = 12
|
|
||||||
right_x = 168
|
|
||||||
|
|
||||||
targets = [
|
|
||||||
{"refId": "A", "expr": left_target["expr"], "legendFormat": left_target["legend"], "instant": True},
|
|
||||||
{"refId": "B", "expr": right_target["expr"], "legendFormat": right_target["legend"], "instant": True},
|
|
||||||
]
|
|
||||||
|
|
||||||
def metric_element(name, field, color_field, left):
|
|
||||||
return {
|
|
||||||
"type": "metric-value",
|
|
||||||
"name": name,
|
|
||||||
"constraint": {"horizontal": "left", "vertical": "top"},
|
|
||||||
"placement": {"left": left, "top": top, "width": width, "height": height},
|
|
||||||
"background": {"color": {"fixed": "transparent"}},
|
|
||||||
"border": {"color": {"fixed": "transparent"}},
|
|
||||||
"config": {
|
|
||||||
"align": "center",
|
|
||||||
"valign": "middle",
|
|
||||||
"size": size,
|
|
||||||
"color": {"field": color_field, "fixed": "text"},
|
|
||||||
"text": {"mode": "field", "field": field, "fixed": ""},
|
|
||||||
},
|
|
||||||
"links": [],
|
|
||||||
}
|
|
||||||
|
|
||||||
panel = {
|
|
||||||
"id": panel_id,
|
|
||||||
"type": "canvas",
|
|
||||||
"title": title,
|
|
||||||
"datasource": PROM_DS,
|
|
||||||
"gridPos": grid,
|
|
||||||
"targets": targets,
|
|
||||||
"fieldConfig": {
|
|
||||||
"defaults": {
|
|
||||||
"mappings": [],
|
|
||||||
"thresholds": thresholds
|
|
||||||
or {
|
|
||||||
"mode": "absolute",
|
|
||||||
"steps": [
|
|
||||||
{"color": "rgba(115, 115, 115, 1)", "value": None},
|
|
||||||
{"color": "green", "value": 1},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
"color": {"mode": "thresholds"},
|
|
||||||
},
|
|
||||||
"overrides": field_overrides or [],
|
|
||||||
},
|
|
||||||
"options": {
|
|
||||||
"inlineEditing": False,
|
|
||||||
"showAdvancedTypes": True,
|
|
||||||
"panZoom": False,
|
|
||||||
"infinitePan": False,
|
|
||||||
"root": {
|
|
||||||
"type": "frame",
|
|
||||||
"name": f"{title} frame",
|
|
||||||
"elements": [
|
|
||||||
metric_element("Left value", left_target["legend"], left_target["legend"], left_x),
|
|
||||||
metric_element("Right value", right_target["legend"], right_target["legend"], right_x),
|
|
||||||
],
|
|
||||||
"background": {"color": {"fixed": "transparent"}},
|
|
||||||
"border": {"color": {"fixed": "transparent"}},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
if links:
|
|
||||||
panel["links"] = links
|
|
||||||
if description:
|
|
||||||
panel["description"] = description
|
|
||||||
return panel
|
|
||||||
|
|
||||||
|
|
||||||
def table_panel(
|
def table_panel(
|
||||||
panel_id,
|
panel_id,
|
||||||
title,
|
title,
|
||||||
@ -1833,12 +1743,20 @@ def build_overview():
|
|||||||
],
|
],
|
||||||
}
|
}
|
||||||
panels.append(
|
panels.append(
|
||||||
overview_two_value_panel(
|
stat_panel(
|
||||||
40,
|
40,
|
||||||
f"{ANANKE_UPS_DB_NAME} UPS Current",
|
f"{ANANKE_UPS_DB_NAME} UPS Current",
|
||||||
|
(
|
||||||
|
'label_replace('
|
||||||
|
+ ANANKE_UPS_DRAW_WATTS_DB
|
||||||
|
+ ', "metric", "Draw", "__name__", ".*") or label_replace('
|
||||||
|
+ ANANKE_UPS_RUNTIME_DB
|
||||||
|
+ ', "metric", "Runtime", "__name__", ".*")'
|
||||||
|
),
|
||||||
{"h": 3, "w": 6, "x": 0, "y": 7},
|
{"h": 3, "w": 6, "x": 0, "y": 7},
|
||||||
left_target={"expr": ANANKE_UPS_DRAW_WATTS_DB, "legend": "Draw"},
|
text_mode="name_and_value",
|
||||||
right_target={"expr": ANANKE_UPS_RUNTIME_DB, "legend": "Runtime"},
|
legend="{{metric}}",
|
||||||
|
instant=True,
|
||||||
field_overrides=[
|
field_overrides=[
|
||||||
{"matcher": {"id": "byName", "options": "Draw"}, "properties": [{"id": "unit", "value": "watt"}]},
|
{"matcher": {"id": "byName", "options": "Draw"}, "properties": [{"id": "unit", "value": "watt"}]},
|
||||||
{"matcher": {"id": "byName", "options": "Runtime"}, "properties": [{"id": "unit", "value": "s"}]},
|
{"matcher": {"id": "byName", "options": "Runtime"}, "properties": [{"id": "unit", "value": "s"}]},
|
||||||
@ -1847,12 +1765,20 @@ def build_overview():
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
panels.append(
|
panels.append(
|
||||||
overview_two_value_panel(
|
stat_panel(
|
||||||
144,
|
144,
|
||||||
f"{ANANKE_UPS_TETHYS_NAME} UPS Current",
|
f"{ANANKE_UPS_TETHYS_NAME} UPS Current",
|
||||||
|
(
|
||||||
|
'label_replace('
|
||||||
|
+ ANANKE_UPS_DRAW_WATTS_TETHYS
|
||||||
|
+ ', "metric", "Draw", "__name__", ".*") or label_replace('
|
||||||
|
+ ANANKE_UPS_RUNTIME_TETHYS
|
||||||
|
+ ', "metric", "Runtime", "__name__", ".*")'
|
||||||
|
),
|
||||||
{"h": 3, "w": 6, "x": 0, "y": 10},
|
{"h": 3, "w": 6, "x": 0, "y": 10},
|
||||||
left_target={"expr": ANANKE_UPS_DRAW_WATTS_TETHYS, "legend": "Draw"},
|
text_mode="name_and_value",
|
||||||
right_target={"expr": ANANKE_UPS_RUNTIME_TETHYS, "legend": "Runtime"},
|
legend="{{metric}}",
|
||||||
|
instant=True,
|
||||||
field_overrides=[
|
field_overrides=[
|
||||||
{"matcher": {"id": "byName", "options": "Draw"}, "properties": [{"id": "unit", "value": "watt"}]},
|
{"matcher": {"id": "byName", "options": "Draw"}, "properties": [{"id": "unit", "value": "watt"}]},
|
||||||
{"matcher": {"id": "byName", "options": "Runtime"}, "properties": [{"id": "unit", "value": "s"}]},
|
{"matcher": {"id": "byName", "options": "Runtime"}, "properties": [{"id": "unit", "value": "s"}]},
|
||||||
@ -1878,12 +1804,20 @@ def build_overview():
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
panels.append(
|
panels.append(
|
||||||
overview_two_value_panel(
|
stat_panel(
|
||||||
42,
|
42,
|
||||||
"Current Enclosure Temperature",
|
"Current Enclosure Temperature",
|
||||||
|
(
|
||||||
|
'label_replace('
|
||||||
|
+ CLIMATE_TEMP_MAX
|
||||||
|
+ ', "metric", "°C", "__name__", ".*") or label_replace('
|
||||||
|
+ CLIMATE_TEMP_FAHRENHEIT_MAX
|
||||||
|
+ ', "metric", "°F", "__name__", ".*")'
|
||||||
|
),
|
||||||
{"h": 3, "w": 6, "x": 0, "y": 13},
|
{"h": 3, "w": 6, "x": 0, "y": 13},
|
||||||
left_target={"expr": CLIMATE_TEMP_MAX, "legend": "°C"},
|
text_mode="name_and_value",
|
||||||
right_target={"expr": CLIMATE_TEMP_FAHRENHEIT_MAX, "legend": "°F"},
|
legend="{{metric}}",
|
||||||
|
instant=True,
|
||||||
field_overrides=[
|
field_overrides=[
|
||||||
{"matcher": {"id": "byName", "options": "°C"}, "properties": [{"id": "unit", "value": "celsius"}]},
|
{"matcher": {"id": "byName", "options": "°C"}, "properties": [{"id": "unit", "value": "celsius"}]},
|
||||||
{"matcher": {"id": "byName", "options": "°F"}, "properties": [{"id": "unit", "value": "fahrenheit"}]},
|
{"matcher": {"id": "byName", "options": "°F"}, "properties": [{"id": "unit", "value": "fahrenheit"}]},
|
||||||
@ -1892,12 +1826,20 @@ def build_overview():
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
panels.append(
|
panels.append(
|
||||||
overview_two_value_panel(
|
stat_panel(
|
||||||
143,
|
143,
|
||||||
"Current Enclosure Climate",
|
"Current Enclosure Climate",
|
||||||
|
(
|
||||||
|
'label_replace('
|
||||||
|
+ CLIMATE_HUMIDITY_MAX
|
||||||
|
+ ', "metric", "%RH", "__name__", ".*") or label_replace('
|
||||||
|
+ CLIMATE_PRESSURE_CURRENT
|
||||||
|
+ ', "metric", "kPa", "__name__", ".*")'
|
||||||
|
),
|
||||||
{"h": 3, "w": 6, "x": 0, "y": 16},
|
{"h": 3, "w": 6, "x": 0, "y": 16},
|
||||||
left_target={"expr": CLIMATE_HUMIDITY_MAX, "legend": "%RH"},
|
text_mode="name_and_value",
|
||||||
right_target={"expr": CLIMATE_PRESSURE_CURRENT, "legend": "kPa"},
|
legend="{{metric}}",
|
||||||
|
instant=True,
|
||||||
field_overrides=[
|
field_overrides=[
|
||||||
{"matcher": {"id": "byName", "options": "%RH"}, "properties": [{"id": "unit", "value": "suffix:%RH"}]},
|
{"matcher": {"id": "byName", "options": "%RH"}, "properties": [{"id": "unit", "value": "suffix:%RH"}]},
|
||||||
{"matcher": {"id": "byName", "options": "kPa"}, "properties": [{"id": "unit", "value": "suffix:kPa"}]},
|
{"matcher": {"id": "byName", "options": "kPa"}, "properties": [{"id": "unit", "value": "suffix:kPa"}]},
|
||||||
|
|||||||
@ -1072,7 +1072,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 40,
|
"id": 40,
|
||||||
"type": "canvas",
|
"type": "stat",
|
||||||
"title": "Pyrphoros UPS Current",
|
"title": "Pyrphoros UPS Current",
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "prometheus",
|
"type": "prometheus",
|
||||||
@ -1086,20 +1086,17 @@
|
|||||||
},
|
},
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
|
"expr": "label_replace(max((ananke_ups_load_percent{job=\"ananke-power\",source=\"Pyrphoros\"} * ananke_ups_power_nominal_watts{job=\"ananke-power\",source=\"Pyrphoros\"}) / 100) or on() vector(0), \"metric\", \"Draw\", \"__name__\", \".*\") or label_replace(max(ananke_ups_runtime_seconds{job=\"ananke-power\",source=\"Pyrphoros\"}) or on() vector(0), \"metric\", \"Runtime\", \"__name__\", \".*\")",
|
||||||
"refId": "A",
|
"refId": "A",
|
||||||
"expr": "max((ananke_ups_load_percent{job=\"ananke-power\",source=\"Pyrphoros\"} * ananke_ups_power_nominal_watts{job=\"ananke-power\",source=\"Pyrphoros\"}) / 100) or on() vector(0)",
|
"legendFormat": "{{metric}}",
|
||||||
"legendFormat": "Draw",
|
|
||||||
"instant": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"refId": "B",
|
|
||||||
"expr": "max(ananke_ups_runtime_seconds{job=\"ananke-power\",source=\"Pyrphoros\"}) or on() vector(0)",
|
|
||||||
"legendFormat": "Runtime",
|
|
||||||
"instant": true
|
"instant": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
|
"color": {
|
||||||
|
"mode": "thresholds"
|
||||||
|
},
|
||||||
"mappings": [],
|
"mappings": [],
|
||||||
"thresholds": {
|
"thresholds": {
|
||||||
"mode": "absolute",
|
"mode": "absolute",
|
||||||
@ -1114,8 +1111,9 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"color": {
|
"unit": "none",
|
||||||
"mode": "thresholds"
|
"custom": {
|
||||||
|
"displayMode": "auto"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"overrides": [
|
"overrides": [
|
||||||
@ -1146,104 +1144,17 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"inlineEditing": false,
|
"colorMode": "value",
|
||||||
"showAdvancedTypes": true,
|
"graphMode": "area",
|
||||||
"panZoom": false,
|
"justifyMode": "center",
|
||||||
"infinitePan": false,
|
"reduceOptions": {
|
||||||
"root": {
|
"calcs": [
|
||||||
"type": "frame",
|
"lastNotNull"
|
||||||
"name": "Pyrphoros UPS Current frame",
|
|
||||||
"elements": [
|
|
||||||
{
|
|
||||||
"type": "metric-value",
|
|
||||||
"name": "Left value",
|
|
||||||
"constraint": {
|
|
||||||
"horizontal": "left",
|
|
||||||
"vertical": "top"
|
|
||||||
},
|
|
||||||
"placement": {
|
|
||||||
"left": 12,
|
|
||||||
"top": 10,
|
|
||||||
"width": 146,
|
|
||||||
"height": 42
|
|
||||||
},
|
|
||||||
"background": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"border": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"config": {
|
|
||||||
"align": "center",
|
|
||||||
"valign": "middle",
|
|
||||||
"size": 30,
|
|
||||||
"color": {
|
|
||||||
"field": "Draw",
|
|
||||||
"fixed": "text"
|
|
||||||
},
|
|
||||||
"text": {
|
|
||||||
"mode": "field",
|
|
||||||
"field": "Draw",
|
|
||||||
"fixed": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"links": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "metric-value",
|
|
||||||
"name": "Right value",
|
|
||||||
"constraint": {
|
|
||||||
"horizontal": "left",
|
|
||||||
"vertical": "top"
|
|
||||||
},
|
|
||||||
"placement": {
|
|
||||||
"left": 168,
|
|
||||||
"top": 10,
|
|
||||||
"width": 146,
|
|
||||||
"height": 42
|
|
||||||
},
|
|
||||||
"background": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"border": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"config": {
|
|
||||||
"align": "center",
|
|
||||||
"valign": "middle",
|
|
||||||
"size": 30,
|
|
||||||
"color": {
|
|
||||||
"field": "Runtime",
|
|
||||||
"fixed": "text"
|
|
||||||
},
|
|
||||||
"text": {
|
|
||||||
"mode": "field",
|
|
||||||
"field": "Runtime",
|
|
||||||
"fixed": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"links": []
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
"background": {
|
"fields": "",
|
||||||
"color": {
|
"values": false
|
||||||
"fixed": "transparent"
|
},
|
||||||
}
|
"textMode": "name_and_value"
|
||||||
},
|
|
||||||
"border": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"links": [
|
"links": [
|
||||||
{
|
{
|
||||||
@ -1255,7 +1166,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 144,
|
"id": 144,
|
||||||
"type": "canvas",
|
"type": "stat",
|
||||||
"title": "Statera UPS Current",
|
"title": "Statera UPS Current",
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "prometheus",
|
"type": "prometheus",
|
||||||
@ -1269,20 +1180,17 @@
|
|||||||
},
|
},
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
|
"expr": "label_replace(max((ananke_ups_load_percent{job=\"ananke-power\",source=\"Statera\"} * ananke_ups_power_nominal_watts{job=\"ananke-power\",source=\"Statera\"}) / 100) or on() vector(0), \"metric\", \"Draw\", \"__name__\", \".*\") or label_replace(max(ananke_ups_runtime_seconds{job=\"ananke-power\",source=\"Statera\"}) or on() vector(0), \"metric\", \"Runtime\", \"__name__\", \".*\")",
|
||||||
"refId": "A",
|
"refId": "A",
|
||||||
"expr": "max((ananke_ups_load_percent{job=\"ananke-power\",source=\"Statera\"} * ananke_ups_power_nominal_watts{job=\"ananke-power\",source=\"Statera\"}) / 100) or on() vector(0)",
|
"legendFormat": "{{metric}}",
|
||||||
"legendFormat": "Draw",
|
|
||||||
"instant": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"refId": "B",
|
|
||||||
"expr": "max(ananke_ups_runtime_seconds{job=\"ananke-power\",source=\"Statera\"}) or on() vector(0)",
|
|
||||||
"legendFormat": "Runtime",
|
|
||||||
"instant": true
|
"instant": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
|
"color": {
|
||||||
|
"mode": "thresholds"
|
||||||
|
},
|
||||||
"mappings": [],
|
"mappings": [],
|
||||||
"thresholds": {
|
"thresholds": {
|
||||||
"mode": "absolute",
|
"mode": "absolute",
|
||||||
@ -1297,8 +1205,9 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"color": {
|
"unit": "none",
|
||||||
"mode": "thresholds"
|
"custom": {
|
||||||
|
"displayMode": "auto"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"overrides": [
|
"overrides": [
|
||||||
@ -1329,104 +1238,17 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"inlineEditing": false,
|
"colorMode": "value",
|
||||||
"showAdvancedTypes": true,
|
"graphMode": "area",
|
||||||
"panZoom": false,
|
"justifyMode": "center",
|
||||||
"infinitePan": false,
|
"reduceOptions": {
|
||||||
"root": {
|
"calcs": [
|
||||||
"type": "frame",
|
"lastNotNull"
|
||||||
"name": "Statera UPS Current frame",
|
|
||||||
"elements": [
|
|
||||||
{
|
|
||||||
"type": "metric-value",
|
|
||||||
"name": "Left value",
|
|
||||||
"constraint": {
|
|
||||||
"horizontal": "left",
|
|
||||||
"vertical": "top"
|
|
||||||
},
|
|
||||||
"placement": {
|
|
||||||
"left": 12,
|
|
||||||
"top": 10,
|
|
||||||
"width": 146,
|
|
||||||
"height": 42
|
|
||||||
},
|
|
||||||
"background": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"border": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"config": {
|
|
||||||
"align": "center",
|
|
||||||
"valign": "middle",
|
|
||||||
"size": 30,
|
|
||||||
"color": {
|
|
||||||
"field": "Draw",
|
|
||||||
"fixed": "text"
|
|
||||||
},
|
|
||||||
"text": {
|
|
||||||
"mode": "field",
|
|
||||||
"field": "Draw",
|
|
||||||
"fixed": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"links": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "metric-value",
|
|
||||||
"name": "Right value",
|
|
||||||
"constraint": {
|
|
||||||
"horizontal": "left",
|
|
||||||
"vertical": "top"
|
|
||||||
},
|
|
||||||
"placement": {
|
|
||||||
"left": 168,
|
|
||||||
"top": 10,
|
|
||||||
"width": 146,
|
|
||||||
"height": 42
|
|
||||||
},
|
|
||||||
"background": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"border": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"config": {
|
|
||||||
"align": "center",
|
|
||||||
"valign": "middle",
|
|
||||||
"size": 30,
|
|
||||||
"color": {
|
|
||||||
"field": "Runtime",
|
|
||||||
"fixed": "text"
|
|
||||||
},
|
|
||||||
"text": {
|
|
||||||
"mode": "field",
|
|
||||||
"field": "Runtime",
|
|
||||||
"fixed": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"links": []
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
"background": {
|
"fields": "",
|
||||||
"color": {
|
"values": false
|
||||||
"fixed": "transparent"
|
},
|
||||||
}
|
"textMode": "name_and_value"
|
||||||
},
|
|
||||||
"border": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"links": [
|
"links": [
|
||||||
{
|
{
|
||||||
@ -1492,7 +1314,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 42,
|
"id": 42,
|
||||||
"type": "canvas",
|
"type": "stat",
|
||||||
"title": "Current Enclosure Temperature",
|
"title": "Current Enclosure Temperature",
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "prometheus",
|
"type": "prometheus",
|
||||||
@ -1506,20 +1328,17 @@
|
|||||||
},
|
},
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
|
"expr": "label_replace(max(max without (job,instance,pod,service,endpoint,namespace) (typhon_temperature_celsius != 0)) or on() vector(0), \"metric\", \"\u00b0C\", \"__name__\", \".*\") or label_replace(max((max without (job,instance,pod,service,endpoint,namespace) (typhon_temperature_celsius != 0)) * 9 / 5 + 32) or on() vector(0), \"metric\", \"\u00b0F\", \"__name__\", \".*\")",
|
||||||
"refId": "A",
|
"refId": "A",
|
||||||
"expr": "max(max without (job,instance,pod,service,endpoint,namespace) (typhon_temperature_celsius != 0)) or on() vector(0)",
|
"legendFormat": "{{metric}}",
|
||||||
"legendFormat": "\u00b0C",
|
|
||||||
"instant": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"refId": "B",
|
|
||||||
"expr": "max((max without (job,instance,pod,service,endpoint,namespace) (typhon_temperature_celsius != 0)) * 9 / 5 + 32) or on() vector(0)",
|
|
||||||
"legendFormat": "\u00b0F",
|
|
||||||
"instant": true
|
"instant": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
|
"color": {
|
||||||
|
"mode": "thresholds"
|
||||||
|
},
|
||||||
"mappings": [],
|
"mappings": [],
|
||||||
"thresholds": {
|
"thresholds": {
|
||||||
"mode": "absolute",
|
"mode": "absolute",
|
||||||
@ -1534,8 +1353,9 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"color": {
|
"unit": "none",
|
||||||
"mode": "thresholds"
|
"custom": {
|
||||||
|
"displayMode": "auto"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"overrides": [
|
"overrides": [
|
||||||
@ -1566,104 +1386,17 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"inlineEditing": false,
|
"colorMode": "value",
|
||||||
"showAdvancedTypes": true,
|
"graphMode": "area",
|
||||||
"panZoom": false,
|
"justifyMode": "center",
|
||||||
"infinitePan": false,
|
"reduceOptions": {
|
||||||
"root": {
|
"calcs": [
|
||||||
"type": "frame",
|
"lastNotNull"
|
||||||
"name": "Current Enclosure Temperature frame",
|
|
||||||
"elements": [
|
|
||||||
{
|
|
||||||
"type": "metric-value",
|
|
||||||
"name": "Left value",
|
|
||||||
"constraint": {
|
|
||||||
"horizontal": "left",
|
|
||||||
"vertical": "top"
|
|
||||||
},
|
|
||||||
"placement": {
|
|
||||||
"left": 12,
|
|
||||||
"top": 10,
|
|
||||||
"width": 146,
|
|
||||||
"height": 42
|
|
||||||
},
|
|
||||||
"background": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"border": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"config": {
|
|
||||||
"align": "center",
|
|
||||||
"valign": "middle",
|
|
||||||
"size": 30,
|
|
||||||
"color": {
|
|
||||||
"field": "\u00b0C",
|
|
||||||
"fixed": "text"
|
|
||||||
},
|
|
||||||
"text": {
|
|
||||||
"mode": "field",
|
|
||||||
"field": "\u00b0C",
|
|
||||||
"fixed": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"links": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "metric-value",
|
|
||||||
"name": "Right value",
|
|
||||||
"constraint": {
|
|
||||||
"horizontal": "left",
|
|
||||||
"vertical": "top"
|
|
||||||
},
|
|
||||||
"placement": {
|
|
||||||
"left": 168,
|
|
||||||
"top": 10,
|
|
||||||
"width": 146,
|
|
||||||
"height": 42
|
|
||||||
},
|
|
||||||
"background": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"border": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"config": {
|
|
||||||
"align": "center",
|
|
||||||
"valign": "middle",
|
|
||||||
"size": 30,
|
|
||||||
"color": {
|
|
||||||
"field": "\u00b0F",
|
|
||||||
"fixed": "text"
|
|
||||||
},
|
|
||||||
"text": {
|
|
||||||
"mode": "field",
|
|
||||||
"field": "\u00b0F",
|
|
||||||
"fixed": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"links": []
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
"background": {
|
"fields": "",
|
||||||
"color": {
|
"values": false
|
||||||
"fixed": "transparent"
|
},
|
||||||
}
|
"textMode": "name_and_value"
|
||||||
},
|
|
||||||
"border": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"links": [
|
"links": [
|
||||||
{
|
{
|
||||||
@ -1675,7 +1408,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 143,
|
"id": 143,
|
||||||
"type": "canvas",
|
"type": "stat",
|
||||||
"title": "Current Enclosure Climate",
|
"title": "Current Enclosure Climate",
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "prometheus",
|
"type": "prometheus",
|
||||||
@ -1689,20 +1422,17 @@
|
|||||||
},
|
},
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
|
"expr": "label_replace(max(max without (job,instance,pod,service,endpoint,namespace) (typhon_relative_humidity_percent != 0)) or on() vector(0), \"metric\", \"%RH\", \"__name__\", \".*\") or label_replace(max(max without (job,instance,pod,service,endpoint,namespace) (typhon_vpd_kpa != 0)) or on() vector(0), \"metric\", \"kPa\", \"__name__\", \".*\")",
|
||||||
"refId": "A",
|
"refId": "A",
|
||||||
"expr": "max(max without (job,instance,pod,service,endpoint,namespace) (typhon_relative_humidity_percent != 0)) or on() vector(0)",
|
"legendFormat": "{{metric}}",
|
||||||
"legendFormat": "%RH",
|
|
||||||
"instant": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"refId": "B",
|
|
||||||
"expr": "max(max without (job,instance,pod,service,endpoint,namespace) (typhon_vpd_kpa != 0)) or on() vector(0)",
|
|
||||||
"legendFormat": "kPa",
|
|
||||||
"instant": true
|
"instant": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
|
"color": {
|
||||||
|
"mode": "thresholds"
|
||||||
|
},
|
||||||
"mappings": [],
|
"mappings": [],
|
||||||
"thresholds": {
|
"thresholds": {
|
||||||
"mode": "absolute",
|
"mode": "absolute",
|
||||||
@ -1717,8 +1447,9 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"color": {
|
"unit": "none",
|
||||||
"mode": "thresholds"
|
"custom": {
|
||||||
|
"displayMode": "auto"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"overrides": [
|
"overrides": [
|
||||||
@ -1749,104 +1480,17 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"inlineEditing": false,
|
"colorMode": "value",
|
||||||
"showAdvancedTypes": true,
|
"graphMode": "area",
|
||||||
"panZoom": false,
|
"justifyMode": "center",
|
||||||
"infinitePan": false,
|
"reduceOptions": {
|
||||||
"root": {
|
"calcs": [
|
||||||
"type": "frame",
|
"lastNotNull"
|
||||||
"name": "Current Enclosure Climate frame",
|
|
||||||
"elements": [
|
|
||||||
{
|
|
||||||
"type": "metric-value",
|
|
||||||
"name": "Left value",
|
|
||||||
"constraint": {
|
|
||||||
"horizontal": "left",
|
|
||||||
"vertical": "top"
|
|
||||||
},
|
|
||||||
"placement": {
|
|
||||||
"left": 12,
|
|
||||||
"top": 10,
|
|
||||||
"width": 146,
|
|
||||||
"height": 42
|
|
||||||
},
|
|
||||||
"background": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"border": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"config": {
|
|
||||||
"align": "center",
|
|
||||||
"valign": "middle",
|
|
||||||
"size": 30,
|
|
||||||
"color": {
|
|
||||||
"field": "%RH",
|
|
||||||
"fixed": "text"
|
|
||||||
},
|
|
||||||
"text": {
|
|
||||||
"mode": "field",
|
|
||||||
"field": "%RH",
|
|
||||||
"fixed": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"links": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "metric-value",
|
|
||||||
"name": "Right value",
|
|
||||||
"constraint": {
|
|
||||||
"horizontal": "left",
|
|
||||||
"vertical": "top"
|
|
||||||
},
|
|
||||||
"placement": {
|
|
||||||
"left": 168,
|
|
||||||
"top": 10,
|
|
||||||
"width": 146,
|
|
||||||
"height": 42
|
|
||||||
},
|
|
||||||
"background": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"border": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"config": {
|
|
||||||
"align": "center",
|
|
||||||
"valign": "middle",
|
|
||||||
"size": 30,
|
|
||||||
"color": {
|
|
||||||
"field": "kPa",
|
|
||||||
"fixed": "text"
|
|
||||||
},
|
|
||||||
"text": {
|
|
||||||
"mode": "field",
|
|
||||||
"field": "kPa",
|
|
||||||
"fixed": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"links": []
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
"background": {
|
"fields": "",
|
||||||
"color": {
|
"values": false
|
||||||
"fixed": "transparent"
|
},
|
||||||
}
|
"textMode": "name_and_value"
|
||||||
},
|
|
||||||
"border": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"links": [
|
"links": [
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1081,7 +1081,7 @@ data:
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 40,
|
"id": 40,
|
||||||
"type": "canvas",
|
"type": "stat",
|
||||||
"title": "Pyrphoros UPS Current",
|
"title": "Pyrphoros UPS Current",
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "prometheus",
|
"type": "prometheus",
|
||||||
@ -1095,20 +1095,17 @@ data:
|
|||||||
},
|
},
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
|
"expr": "label_replace(max((ananke_ups_load_percent{job=\"ananke-power\",source=\"Pyrphoros\"} * ananke_ups_power_nominal_watts{job=\"ananke-power\",source=\"Pyrphoros\"}) / 100) or on() vector(0), \"metric\", \"Draw\", \"__name__\", \".*\") or label_replace(max(ananke_ups_runtime_seconds{job=\"ananke-power\",source=\"Pyrphoros\"}) or on() vector(0), \"metric\", \"Runtime\", \"__name__\", \".*\")",
|
||||||
"refId": "A",
|
"refId": "A",
|
||||||
"expr": "max((ananke_ups_load_percent{job=\"ananke-power\",source=\"Pyrphoros\"} * ananke_ups_power_nominal_watts{job=\"ananke-power\",source=\"Pyrphoros\"}) / 100) or on() vector(0)",
|
"legendFormat": "{{metric}}",
|
||||||
"legendFormat": "Draw",
|
|
||||||
"instant": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"refId": "B",
|
|
||||||
"expr": "max(ananke_ups_runtime_seconds{job=\"ananke-power\",source=\"Pyrphoros\"}) or on() vector(0)",
|
|
||||||
"legendFormat": "Runtime",
|
|
||||||
"instant": true
|
"instant": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
|
"color": {
|
||||||
|
"mode": "thresholds"
|
||||||
|
},
|
||||||
"mappings": [],
|
"mappings": [],
|
||||||
"thresholds": {
|
"thresholds": {
|
||||||
"mode": "absolute",
|
"mode": "absolute",
|
||||||
@ -1123,8 +1120,9 @@ data:
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"color": {
|
"unit": "none",
|
||||||
"mode": "thresholds"
|
"custom": {
|
||||||
|
"displayMode": "auto"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"overrides": [
|
"overrides": [
|
||||||
@ -1155,104 +1153,17 @@ data:
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"inlineEditing": false,
|
"colorMode": "value",
|
||||||
"showAdvancedTypes": true,
|
"graphMode": "area",
|
||||||
"panZoom": false,
|
"justifyMode": "center",
|
||||||
"infinitePan": false,
|
"reduceOptions": {
|
||||||
"root": {
|
"calcs": [
|
||||||
"type": "frame",
|
"lastNotNull"
|
||||||
"name": "Pyrphoros UPS Current frame",
|
|
||||||
"elements": [
|
|
||||||
{
|
|
||||||
"type": "metric-value",
|
|
||||||
"name": "Left value",
|
|
||||||
"constraint": {
|
|
||||||
"horizontal": "left",
|
|
||||||
"vertical": "top"
|
|
||||||
},
|
|
||||||
"placement": {
|
|
||||||
"left": 12,
|
|
||||||
"top": 10,
|
|
||||||
"width": 146,
|
|
||||||
"height": 42
|
|
||||||
},
|
|
||||||
"background": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"border": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"config": {
|
|
||||||
"align": "center",
|
|
||||||
"valign": "middle",
|
|
||||||
"size": 30,
|
|
||||||
"color": {
|
|
||||||
"field": "Draw",
|
|
||||||
"fixed": "text"
|
|
||||||
},
|
|
||||||
"text": {
|
|
||||||
"mode": "field",
|
|
||||||
"field": "Draw",
|
|
||||||
"fixed": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"links": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "metric-value",
|
|
||||||
"name": "Right value",
|
|
||||||
"constraint": {
|
|
||||||
"horizontal": "left",
|
|
||||||
"vertical": "top"
|
|
||||||
},
|
|
||||||
"placement": {
|
|
||||||
"left": 168,
|
|
||||||
"top": 10,
|
|
||||||
"width": 146,
|
|
||||||
"height": 42
|
|
||||||
},
|
|
||||||
"background": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"border": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"config": {
|
|
||||||
"align": "center",
|
|
||||||
"valign": "middle",
|
|
||||||
"size": 30,
|
|
||||||
"color": {
|
|
||||||
"field": "Runtime",
|
|
||||||
"fixed": "text"
|
|
||||||
},
|
|
||||||
"text": {
|
|
||||||
"mode": "field",
|
|
||||||
"field": "Runtime",
|
|
||||||
"fixed": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"links": []
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
"background": {
|
"fields": "",
|
||||||
"color": {
|
"values": false
|
||||||
"fixed": "transparent"
|
},
|
||||||
}
|
"textMode": "name_and_value"
|
||||||
},
|
|
||||||
"border": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"links": [
|
"links": [
|
||||||
{
|
{
|
||||||
@ -1264,7 +1175,7 @@ data:
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 144,
|
"id": 144,
|
||||||
"type": "canvas",
|
"type": "stat",
|
||||||
"title": "Statera UPS Current",
|
"title": "Statera UPS Current",
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "prometheus",
|
"type": "prometheus",
|
||||||
@ -1278,20 +1189,17 @@ data:
|
|||||||
},
|
},
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
|
"expr": "label_replace(max((ananke_ups_load_percent{job=\"ananke-power\",source=\"Statera\"} * ananke_ups_power_nominal_watts{job=\"ananke-power\",source=\"Statera\"}) / 100) or on() vector(0), \"metric\", \"Draw\", \"__name__\", \".*\") or label_replace(max(ananke_ups_runtime_seconds{job=\"ananke-power\",source=\"Statera\"}) or on() vector(0), \"metric\", \"Runtime\", \"__name__\", \".*\")",
|
||||||
"refId": "A",
|
"refId": "A",
|
||||||
"expr": "max((ananke_ups_load_percent{job=\"ananke-power\",source=\"Statera\"} * ananke_ups_power_nominal_watts{job=\"ananke-power\",source=\"Statera\"}) / 100) or on() vector(0)",
|
"legendFormat": "{{metric}}",
|
||||||
"legendFormat": "Draw",
|
|
||||||
"instant": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"refId": "B",
|
|
||||||
"expr": "max(ananke_ups_runtime_seconds{job=\"ananke-power\",source=\"Statera\"}) or on() vector(0)",
|
|
||||||
"legendFormat": "Runtime",
|
|
||||||
"instant": true
|
"instant": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
|
"color": {
|
||||||
|
"mode": "thresholds"
|
||||||
|
},
|
||||||
"mappings": [],
|
"mappings": [],
|
||||||
"thresholds": {
|
"thresholds": {
|
||||||
"mode": "absolute",
|
"mode": "absolute",
|
||||||
@ -1306,8 +1214,9 @@ data:
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"color": {
|
"unit": "none",
|
||||||
"mode": "thresholds"
|
"custom": {
|
||||||
|
"displayMode": "auto"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"overrides": [
|
"overrides": [
|
||||||
@ -1338,104 +1247,17 @@ data:
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"inlineEditing": false,
|
"colorMode": "value",
|
||||||
"showAdvancedTypes": true,
|
"graphMode": "area",
|
||||||
"panZoom": false,
|
"justifyMode": "center",
|
||||||
"infinitePan": false,
|
"reduceOptions": {
|
||||||
"root": {
|
"calcs": [
|
||||||
"type": "frame",
|
"lastNotNull"
|
||||||
"name": "Statera UPS Current frame",
|
|
||||||
"elements": [
|
|
||||||
{
|
|
||||||
"type": "metric-value",
|
|
||||||
"name": "Left value",
|
|
||||||
"constraint": {
|
|
||||||
"horizontal": "left",
|
|
||||||
"vertical": "top"
|
|
||||||
},
|
|
||||||
"placement": {
|
|
||||||
"left": 12,
|
|
||||||
"top": 10,
|
|
||||||
"width": 146,
|
|
||||||
"height": 42
|
|
||||||
},
|
|
||||||
"background": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"border": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"config": {
|
|
||||||
"align": "center",
|
|
||||||
"valign": "middle",
|
|
||||||
"size": 30,
|
|
||||||
"color": {
|
|
||||||
"field": "Draw",
|
|
||||||
"fixed": "text"
|
|
||||||
},
|
|
||||||
"text": {
|
|
||||||
"mode": "field",
|
|
||||||
"field": "Draw",
|
|
||||||
"fixed": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"links": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "metric-value",
|
|
||||||
"name": "Right value",
|
|
||||||
"constraint": {
|
|
||||||
"horizontal": "left",
|
|
||||||
"vertical": "top"
|
|
||||||
},
|
|
||||||
"placement": {
|
|
||||||
"left": 168,
|
|
||||||
"top": 10,
|
|
||||||
"width": 146,
|
|
||||||
"height": 42
|
|
||||||
},
|
|
||||||
"background": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"border": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"config": {
|
|
||||||
"align": "center",
|
|
||||||
"valign": "middle",
|
|
||||||
"size": 30,
|
|
||||||
"color": {
|
|
||||||
"field": "Runtime",
|
|
||||||
"fixed": "text"
|
|
||||||
},
|
|
||||||
"text": {
|
|
||||||
"mode": "field",
|
|
||||||
"field": "Runtime",
|
|
||||||
"fixed": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"links": []
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
"background": {
|
"fields": "",
|
||||||
"color": {
|
"values": false
|
||||||
"fixed": "transparent"
|
},
|
||||||
}
|
"textMode": "name_and_value"
|
||||||
},
|
|
||||||
"border": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"links": [
|
"links": [
|
||||||
{
|
{
|
||||||
@ -1501,7 +1323,7 @@ data:
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 42,
|
"id": 42,
|
||||||
"type": "canvas",
|
"type": "stat",
|
||||||
"title": "Current Enclosure Temperature",
|
"title": "Current Enclosure Temperature",
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "prometheus",
|
"type": "prometheus",
|
||||||
@ -1515,20 +1337,17 @@ data:
|
|||||||
},
|
},
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
|
"expr": "label_replace(max(max without (job,instance,pod,service,endpoint,namespace) (typhon_temperature_celsius != 0)) or on() vector(0), \"metric\", \"\u00b0C\", \"__name__\", \".*\") or label_replace(max((max without (job,instance,pod,service,endpoint,namespace) (typhon_temperature_celsius != 0)) * 9 / 5 + 32) or on() vector(0), \"metric\", \"\u00b0F\", \"__name__\", \".*\")",
|
||||||
"refId": "A",
|
"refId": "A",
|
||||||
"expr": "max(max without (job,instance,pod,service,endpoint,namespace) (typhon_temperature_celsius != 0)) or on() vector(0)",
|
"legendFormat": "{{metric}}",
|
||||||
"legendFormat": "\u00b0C",
|
|
||||||
"instant": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"refId": "B",
|
|
||||||
"expr": "max((max without (job,instance,pod,service,endpoint,namespace) (typhon_temperature_celsius != 0)) * 9 / 5 + 32) or on() vector(0)",
|
|
||||||
"legendFormat": "\u00b0F",
|
|
||||||
"instant": true
|
"instant": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
|
"color": {
|
||||||
|
"mode": "thresholds"
|
||||||
|
},
|
||||||
"mappings": [],
|
"mappings": [],
|
||||||
"thresholds": {
|
"thresholds": {
|
||||||
"mode": "absolute",
|
"mode": "absolute",
|
||||||
@ -1543,8 +1362,9 @@ data:
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"color": {
|
"unit": "none",
|
||||||
"mode": "thresholds"
|
"custom": {
|
||||||
|
"displayMode": "auto"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"overrides": [
|
"overrides": [
|
||||||
@ -1575,104 +1395,17 @@ data:
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"inlineEditing": false,
|
"colorMode": "value",
|
||||||
"showAdvancedTypes": true,
|
"graphMode": "area",
|
||||||
"panZoom": false,
|
"justifyMode": "center",
|
||||||
"infinitePan": false,
|
"reduceOptions": {
|
||||||
"root": {
|
"calcs": [
|
||||||
"type": "frame",
|
"lastNotNull"
|
||||||
"name": "Current Enclosure Temperature frame",
|
|
||||||
"elements": [
|
|
||||||
{
|
|
||||||
"type": "metric-value",
|
|
||||||
"name": "Left value",
|
|
||||||
"constraint": {
|
|
||||||
"horizontal": "left",
|
|
||||||
"vertical": "top"
|
|
||||||
},
|
|
||||||
"placement": {
|
|
||||||
"left": 12,
|
|
||||||
"top": 10,
|
|
||||||
"width": 146,
|
|
||||||
"height": 42
|
|
||||||
},
|
|
||||||
"background": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"border": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"config": {
|
|
||||||
"align": "center",
|
|
||||||
"valign": "middle",
|
|
||||||
"size": 30,
|
|
||||||
"color": {
|
|
||||||
"field": "\u00b0C",
|
|
||||||
"fixed": "text"
|
|
||||||
},
|
|
||||||
"text": {
|
|
||||||
"mode": "field",
|
|
||||||
"field": "\u00b0C",
|
|
||||||
"fixed": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"links": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "metric-value",
|
|
||||||
"name": "Right value",
|
|
||||||
"constraint": {
|
|
||||||
"horizontal": "left",
|
|
||||||
"vertical": "top"
|
|
||||||
},
|
|
||||||
"placement": {
|
|
||||||
"left": 168,
|
|
||||||
"top": 10,
|
|
||||||
"width": 146,
|
|
||||||
"height": 42
|
|
||||||
},
|
|
||||||
"background": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"border": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"config": {
|
|
||||||
"align": "center",
|
|
||||||
"valign": "middle",
|
|
||||||
"size": 30,
|
|
||||||
"color": {
|
|
||||||
"field": "\u00b0F",
|
|
||||||
"fixed": "text"
|
|
||||||
},
|
|
||||||
"text": {
|
|
||||||
"mode": "field",
|
|
||||||
"field": "\u00b0F",
|
|
||||||
"fixed": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"links": []
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
"background": {
|
"fields": "",
|
||||||
"color": {
|
"values": false
|
||||||
"fixed": "transparent"
|
},
|
||||||
}
|
"textMode": "name_and_value"
|
||||||
},
|
|
||||||
"border": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"links": [
|
"links": [
|
||||||
{
|
{
|
||||||
@ -1684,7 +1417,7 @@ data:
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 143,
|
"id": 143,
|
||||||
"type": "canvas",
|
"type": "stat",
|
||||||
"title": "Current Enclosure Climate",
|
"title": "Current Enclosure Climate",
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "prometheus",
|
"type": "prometheus",
|
||||||
@ -1698,20 +1431,17 @@ data:
|
|||||||
},
|
},
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
|
"expr": "label_replace(max(max without (job,instance,pod,service,endpoint,namespace) (typhon_relative_humidity_percent != 0)) or on() vector(0), \"metric\", \"%RH\", \"__name__\", \".*\") or label_replace(max(max without (job,instance,pod,service,endpoint,namespace) (typhon_vpd_kpa != 0)) or on() vector(0), \"metric\", \"kPa\", \"__name__\", \".*\")",
|
||||||
"refId": "A",
|
"refId": "A",
|
||||||
"expr": "max(max without (job,instance,pod,service,endpoint,namespace) (typhon_relative_humidity_percent != 0)) or on() vector(0)",
|
"legendFormat": "{{metric}}",
|
||||||
"legendFormat": "%RH",
|
|
||||||
"instant": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"refId": "B",
|
|
||||||
"expr": "max(max without (job,instance,pod,service,endpoint,namespace) (typhon_vpd_kpa != 0)) or on() vector(0)",
|
|
||||||
"legendFormat": "kPa",
|
|
||||||
"instant": true
|
"instant": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
|
"color": {
|
||||||
|
"mode": "thresholds"
|
||||||
|
},
|
||||||
"mappings": [],
|
"mappings": [],
|
||||||
"thresholds": {
|
"thresholds": {
|
||||||
"mode": "absolute",
|
"mode": "absolute",
|
||||||
@ -1726,8 +1456,9 @@ data:
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"color": {
|
"unit": "none",
|
||||||
"mode": "thresholds"
|
"custom": {
|
||||||
|
"displayMode": "auto"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"overrides": [
|
"overrides": [
|
||||||
@ -1758,104 +1489,17 @@ data:
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"inlineEditing": false,
|
"colorMode": "value",
|
||||||
"showAdvancedTypes": true,
|
"graphMode": "area",
|
||||||
"panZoom": false,
|
"justifyMode": "center",
|
||||||
"infinitePan": false,
|
"reduceOptions": {
|
||||||
"root": {
|
"calcs": [
|
||||||
"type": "frame",
|
"lastNotNull"
|
||||||
"name": "Current Enclosure Climate frame",
|
|
||||||
"elements": [
|
|
||||||
{
|
|
||||||
"type": "metric-value",
|
|
||||||
"name": "Left value",
|
|
||||||
"constraint": {
|
|
||||||
"horizontal": "left",
|
|
||||||
"vertical": "top"
|
|
||||||
},
|
|
||||||
"placement": {
|
|
||||||
"left": 12,
|
|
||||||
"top": 10,
|
|
||||||
"width": 146,
|
|
||||||
"height": 42
|
|
||||||
},
|
|
||||||
"background": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"border": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"config": {
|
|
||||||
"align": "center",
|
|
||||||
"valign": "middle",
|
|
||||||
"size": 30,
|
|
||||||
"color": {
|
|
||||||
"field": "%RH",
|
|
||||||
"fixed": "text"
|
|
||||||
},
|
|
||||||
"text": {
|
|
||||||
"mode": "field",
|
|
||||||
"field": "%RH",
|
|
||||||
"fixed": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"links": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "metric-value",
|
|
||||||
"name": "Right value",
|
|
||||||
"constraint": {
|
|
||||||
"horizontal": "left",
|
|
||||||
"vertical": "top"
|
|
||||||
},
|
|
||||||
"placement": {
|
|
||||||
"left": 168,
|
|
||||||
"top": 10,
|
|
||||||
"width": 146,
|
|
||||||
"height": 42
|
|
||||||
},
|
|
||||||
"background": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"border": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"config": {
|
|
||||||
"align": "center",
|
|
||||||
"valign": "middle",
|
|
||||||
"size": 30,
|
|
||||||
"color": {
|
|
||||||
"field": "kPa",
|
|
||||||
"fixed": "text"
|
|
||||||
},
|
|
||||||
"text": {
|
|
||||||
"mode": "field",
|
|
||||||
"field": "kPa",
|
|
||||||
"fixed": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"links": []
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
"background": {
|
"fields": "",
|
||||||
"color": {
|
"values": false
|
||||||
"fixed": "transparent"
|
},
|
||||||
}
|
"textMode": "name_and_value"
|
||||||
},
|
|
||||||
"border": {
|
|
||||||
"color": {
|
|
||||||
"fixed": "transparent"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"links": [
|
"links": [
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user