monitoring: temp dashboard shows max temp per host with 70°C warning line

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
teddy 2026-06-09 23:59:34 +02:00
parent 7ad8fd479f
commit 6ee12c3270

View file

@ -52,10 +52,10 @@ data:
"defaults": { "defaults": {
"color": {"mode": "palette-classic"}, "color": {"mode": "palette-classic"},
"unit": "celsius", "unit": "celsius",
"custom": {"drawStyle": "line", "lineWidth": 1, "fillOpacity": 10, "showPoints": "never"}, "custom": {"drawStyle": "line", "lineWidth": 2, "fillOpacity": 10, "showPoints": "never", "thresholdsStyle": {"mode": "line"}},
"thresholds": {"mode": "absolute", "steps": [ "thresholds": {"mode": "absolute", "steps": [
{"color": "green", "value": null}, {"color": "green", "value": null},
{"color": "red", "value": 85} {"color": "red", "value": 70}
]} ]}
}, },
"overrides": [] "overrides": []
@ -66,12 +66,12 @@ data:
"legend": {"displayMode": "table", "placement": "bottom", "calcs": ["last", "max"]}, "legend": {"displayMode": "table", "placement": "bottom", "calcs": ["last", "max"]},
"tooltip": {"mode": "multi"} "tooltip": {"mode": "multi"}
}, },
"title": "All temperature sensors", "title": "Highest temperature per host (warning line @ 70°C)",
"type": "timeseries", "type": "timeseries",
"targets": [ "targets": [
{"datasource": {"type": "prometheus", "uid": "${datasource}"}, {"datasource": {"type": "prometheus", "uid": "${datasource}"},
"expr": "node_hwmon_temp_celsius", "expr": "max by (instance) (node_hwmon_temp_celsius)",
"legendFormat": "{{instance}} / {{chip}} / {{sensor}}", "refId": "A"} "legendFormat": "{{instance}}", "refId": "A"}
] ]
} }
], ],
@ -87,5 +87,5 @@ data:
"timezone": "Europe/Oslo", "timezone": "Europe/Oslo",
"title": "Hardware Temperatures", "title": "Hardware Temperatures",
"uid": "hw-temps", "uid": "hw-temps",
"version": 1 "version": 2
} }