Repository navigation
feat(alerts): warn when a CPU holds near its critical temperature - #1727
Merged
Merged
Conversation
HostCpuHot fires when a host's hottest coretemp core has held within 10 °C of its own critical point for ten minutes. Nothing read node_hwmon_temp_celsius before; the prometheus audit watched the laptop peak at 92 °C against 105 (finding 10). The margin is measured against 29 days of retention. coretemp only, because smaug's DIMM sensors report a critical point of 0 °C. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟡 Changes recommended
The CPU temperature tests do not verify the ten-minute hold, so they would miss premature or delayed warnings if the alert duration were removed or changed.
1 open issue
What changed in this PR
Adds HostCpuHot to the host monitoring rules, warning when coretemp readings remain within 10 °C of their own critical temperature for ten minutes.
Changes:
- Adds a warning-level CPU temperature alert, aggregated by host and job.
- Adds tests for sustained heat, a below-threshold spike, and excluded non-coretemp sensors.
- Updates alert totals and documents the new monitoring coverage.
| File | Description |
|---|---|
stacks/observability/README.md |
Updates the Prometheus alert count. |
stacks/observability/prometheus/tests/host.test.yaml |
Adds three CPU temperature alert scenarios. |
stacks/observability/prometheus/rules/host.rules.yaml |
Defines HostCpuHot and troubleshooting guidance. |
README.md |
Updates total and Prometheus alert counts. |
docs/security.md |
Updates the alert count for failure visibility. |
docs/runbooks/deploy-stack.md |
Updates expected loaded rule counts. |
docs/observability.md |
Documents CPU monitoring and updates rule and coverage totals. |
docs/changelog.md |
Records the alert and its threshold rationale. |
Review effort: Balanced
Gerrrt
enabled auto-merge (squash)
November 24, 2026 21:16
…ure-alert # Conflicts: # docs/changelog.md
Quiet at 5m and firing at 10m on the sustained-hot fixture, so removing `for: 10m` or lengthening it fails a test. Review on #1727. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What changed
Adds
HostCpuHot, a warning inhost.rules.yaml. It fires when a host's hottest coretemp core has stayed within 10 °C of that core's own critical temperature for ten minutes. Three promtool tests cover it, and the rule counts in six documents and the changelog are updated.Why
No rule read
node_hwmon_temp_celsius. The audit ofprometheusof 2026-11-13 (finding 10) watched the laptop peak at 92 °C against a 105 °C critical. If a fan failed or a vent was blocked, the first page would have beenInstanceDown, after the machine had already shut itself down.The margin is measured, not chosen. Over 29 days of retention, the closest any host held within critical for ten minutes was 22 °C:
prometheus, during the audit's own heavy work. Its brief peaks came within 13 °C. So 10 °C for 10 minutes sits past both, and still before the CPU shuts down.Only
platform_coretemp_*chips are read. On other chips the critical value means nothing: smaug's DIMM sensors report a critical point of 0 °C.heimdall(a Pi) has no coretemp.Blast radius
One new warning-level rule on Prometheus. It is not firing now: queried live with a 60 °C margin, the expression returns
prometheus77,trinity52 andSaruman46, so nothing is within 10 °C of critical. If the rule is wrong, it means a spurious or missing warning, and nothing else.secrets/*.sops.yamlVerification
promtool check rules rules/host.rules.yaml(prom/prometheus v3.16.0, via docker):SUCCESS: 64 rules found.promtool test rules tests/host.test.yaml:SUCCESS. The first run failed on the missingjoblabel, because a comparison withon (...)keeps only the labels it matches on. The rule now matches onjobtoo.scripts/check_rule_tests.py: every one of 221 alert rules is selected by a test.scripts/check_docs.py:docs OK — 183 Prometheus + 28 Loki rules.scripts/lint.sh: passed.The expression run live against Prometheus, as above.
make validatepasses — not run locally; CI runs itDeployed to the lab and confirmed working — converge deploys it after merge
Docs updated (
docs/, service README, ordocs/roadmap.md)Refs the audit of
prometheus, finding 10. No issue was filed.🤖 Generated with Claude Code