Skip to content

feat(alerts): fixed limits on the rack's temperature, now the units are known - #1681

Merged
Gerrrt merged 4 commits into
mainfrom
gerrrt/rack-ambient-threshold
Nov 23, 2026
Merged

Gerrrt merged 4 commits into
mainfrom
gerrrt/rack-ambient-threshold

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 23, 2026

Copy link
Copy Markdown
Owner

What changed

Two fixed limits on the rack-ambient probe on mjolnir's card: RackAmbientTemperatureHigh (warning, over 30 °C for 15m) and RackAmbientTemperatureCritical (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 uioSensorStatusTemperatureDegC is 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; RackAmbientTemperatureAlarm on the card's own limits is unchanged.

  • No change to network segmentation or firewall rules
  • No new port published to a VLAN that could not already reach the service
  • No credential added outside secrets/*.sops.yaml

Verification

  • 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 validate passes

  • Deployed to the lab and confirmed working (after merge: both rules loaded, healthy, inactive at 22 °C)

  • Docs updated (docs/, service README, or docs/roadmap.md)

🤖 Generated with Claude Code

…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>
Copilot AI balanced review requested due to automatic review settings November 23, 2026 18:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Gerrrt and others added 2 commits November 23, 2026 18:58
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
Gerrrt enabled auto-merge (squash) November 23, 2026 19:09
…hreshold

# Conflicts:
#	README.md
#	docs/changelog.md
#	docs/observability.md
@Gerrrt
Gerrrt merged commit a014ebd into main Nov 23, 2026
9 checks passed
@Gerrrt
Gerrrt deleted the gerrrt/rack-ambient-threshold branch November 23, 2026 19:33
Gerrrt added a commit that referenced this pull request Nov 23, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants