Repository navigation
feat(alerts): fixed limits on the rack's temperature, now the units are known - #1681
Merged
Merged
Conversation
…re known The AP9335T's first reading after #1672 deployed was 22 °C: the card reports whole degrees in uioSensorStatusTemperatureDegC, not the tenths PowerNet-MIB describes. RackAmbientTemperatureHigh warns over 30 °C for fifteen minutes; RackAmbientTemperatureCritical pages over 35 °C, the top of ASHRAE class A2, for ten. The UPS runbook says what to do. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟡 Changes recommended
The short-spike assertion runs after the temperature normalizes, so it can miss premature warnings caused by a removed or shortened alert delay.
1 open issue
What changed in this PR
Adds fixed rack-temperature alerts to the observability stack after the first probe reading confirmed whole-degree units, completing the threshold work deferred in #1672.
Changes:
- Adds a warning above 30 °C for 15 minutes and a critical alert above 35 °C for 10 minutes.
- Adds tests for normal, sustained warm, brief warm, and critical readings.
- Documents the critical-alert response, confirmed units, and updated alert totals.
| File | Description |
|---|---|
stacks/observability/README.md |
Updates the Prometheus alert count. |
stacks/observability/prometheus/tests/ups.test.yaml |
Adds temperature-alert test scenarios. |
stacks/observability/prometheus/rules/ups.rules.yaml |
Adds fixed thresholds and documents confirmed units. |
README.md |
Updates overall and Prometheus alert totals. |
docs/security.md |
Updates the monitoring alert total. |
docs/runbooks/shut-down-on-the-ups.md |
Adds response guidance for critical rack temperature. |
docs/runbooks/deploy-stack.md |
Updates expected loaded-rule counts. |
docs/observability.md |
Documents new alerts, units, and coverage totals. |
docs/hardware.md |
Records probe thresholds and its first reading. |
docs/changelog.md |
Records the fixed limits and confirmed units. |
Review effort: Balanced
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hreshold # Conflicts: # README.md # docs/observability.md # docs/runbooks/deploy-stack.md # docs/security.md # stacks/observability/README.md
Gerrrt
enabled auto-merge (squash)
November 23, 2026 19:09
…hreshold # Conflicts: # README.md # docs/changelog.md # docs/observability.md
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
Two fixed limits on the rack-ambient probe on mjolnir's card:
RackAmbientTemperatureHigh(warning, over 30 °C for 15m) andRackAmbientTemperatureCritical(critical, over 35 °C for 10m). The UPS runbook gains what to do when the critical one pages, and the comments and docs that said the units were unverified now say whole degrees.Why
#1672 left the threshold out until the first reading settled whether
uioSensorStatusTemperatureDegCis in tenths (as PowerNet-MIB says) or whole degrees. After it deployed, the first scrape at 15:26 UTC read 22, with the battery at 25 °C beside it: whole degrees. 35 °C is the top of ASHRAE class A2, the DL360's rated inlet limit; 30 °C leaves room to act.Blast radius
The observability stack's Prometheus rules only. If a limit is wrong, the worst case is a false or missed page about rack temperature;
RackAmbientTemperatureAlarmon the card's own limits is unchanged.secrets/*.sops.yamlVerification
make validate: all checks passed, 5 skipped (backup-offsite on tmpfs; unit syntax, installed timers, sensitive timers and homelab-* units, which run only from the deployment checkout). That run was before rebasing onto main; after the rebase,check_docs.py(168 + 26 = 194),lint.sh,promtool test rules ups.test.yaml(SUCCESS) and the Loki tests (65/65) pass again.New tests: 22 °C quiet, 31 °C held fires the warning only, 33 °C for ten minutes stays quiet, 36 °C held fires both.
make validatepassesDeployed to the lab and confirmed working (after merge: both rules loaded, healthy, inactive at 22 °C)
Docs updated (
docs/, service README, ordocs/roadmap.md)🤖 Generated with Claude Code