Repository navigation
feat(alerts): warn on heimdall's updates, units, heat and silence, and keep its bootloader current - #1726
Merged
Conversation
…d keep its bootloader current A read-only re-check of heimdall on 2026-11-24 found its bootloader still at June 2025's: rpi-eeprom-update.service runs with -s, which writes only below Raspberry Pi's critical floor. build-heimdall.md §2 now drops the -s with a drop-in, purges rpi-connect-lite, autoremoves, and has unattended-upgrades remove unused dependencies. It also found nothing reading what heimdall exports. Four warnings on role="display" now do: DisplayUpdatesStalled, DisplayUnitFailed, DisplayHot and DisplayDown, each with a firing and a quiet test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gerrrt
marked this pull request as ready for review
November 24, 2026 21:11
Gerrrt
enabled auto-merge (squash)
November 24, 2026 21:12
There was a problem hiding this comment.
🟡 Changes recommended
The alert’s three-day pending timer can reset during short scrape gaps, preventing it from ever firing with daily interruptions, and the existing fixture does not cover this failure case.
1 open issue
What changed in this PR
Adds non-paging monitoring for heimdall, the office wall display, and documents how to keep its bootloader current alongside unattended package updates.
Changes:
- Adds four display warnings for stalled updates, failed units, high temperature, and prolonged scrape failure, with firing and quiet tests.
- Extends the build runbook with bootloader updates, package cleanup, and rollback instructions; these steps remain unapplied.
- Updates alert counts and documentation, including correcting the scrape comment about throttle-state reporting.
| File | Description |
|---|---|
stacks/observability/README.md |
Updates the Prometheus alert count. |
stacks/observability/prometheus/tests/host.test.yaml |
Adds firing and quiet cases for display warnings. |
stacks/observability/prometheus/targets/node.yaml |
Clarifies display monitoring in comments only. |
stacks/observability/prometheus/rules/host.rules.yaml |
Adds four display-specific warning rules. |
README.md |
Updates overall and Prometheus alert totals. |
docs/security.md |
Updates the alert total. |
docs/runbooks/deploy-stack.md |
Updates the expected Rules page count. |
docs/runbooks/build-heimdall.md |
Documents bootloader maintenance, cleanup, warnings, and rollback. |
docs/observability.md |
Describes display coverage and updates rule totals. |
docs/changelog.md |
Records the re-check, changes, and pending operator steps. |
Review effort: Balanced
A failed scrape at the 04:30 reboot marks apt_upgrades_pending stale, which reset the three-day timer every night, so the alert could never fire. Read max_over_time over 15 minutes instead, and test it with a stale sample each day. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…oader-and-alerts # Conflicts: # docs/changelog.md
…oader-and-alerts # Conflicts: # docs/changelog.md
…oader-and-alerts # Conflicts: # README.md # docs/observability.md # docs/runbooks/deploy-stack.md # docs/security.md # stacks/observability/README.md
5 of 6 tasks
Gerrrt
added a commit
that referenced
this pull request
Nov 24, 2026
…ten by flashrom (#1730) Applying #1726's §2 on heimdall found no /dev/spidev*, so rpi-eeprom-update staged pieeprom.upd and recovery.bin for the next boot instead of writing the chip. The runbook says so now, and a changelog entry corrects #1726's and records the apply. 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
heimdall, the office wall Pi, gets four non-paging warnings, and its build runbook gets a step that keeps its bootloader up to date. The runbook's §2 now:-sflag fromrpi-eeprom-update;rpi-connect-lite;apt autoremove --purge;The new warnings are
DisplayUpdatesStalled,DisplayUnitFailed,DisplayHotandDisplayDown. They're inhost.rules.yamland selectrole="display". Each has a firing test and a quiet one.The new §2 steps are not yet applied on the Pi, because they need the operator's sudo password.
Why
A read-only re-check of
heimdallon 2026-11-24 confirmed all twelve of the 2026-11-23 audit's fixes. A new audit would still find two things:rpi-eeprompackage went to 28.38 unattended, carrying the October 2026 bootloader. The boot-time service runs with-s, which writes only when the chip is older than Raspberry Pi's floor for critical fixes. The 09:10 boot logged "Skipping automatic bootloader upgrade". §2 said the nightly reboot made upgraded firmware run, which was not true of the bootloader.InstanceDownexcludes it by design, and the nightlyHostRebootedisinfo, which is never sent.apt_upgrades_pending,node_systemd_unit_stateand the SoC temperature were scraped, and nothing watched them.The changelog entry has the details.
node.yaml's comment no longer claims the scrape covers the throttle state, whichnode_exporterdoes not report.Blast radius
The rules: four new warnings that select only
role="display", which is onlyheimdall.DisplayUpdatesStalledroutes to thesecurityreceiver and the other three todefault. None is critical, so none pages. If an expression is wrong, the worst case is a missing or spurious warning about the wall Pi.The runbook, once applied: the Pi will write a new bootloader at its next boot. On a Pi 5 that is a
flashromwrite that the script verifies. If the write fails,recovery.binis left on the card to retry at the next boot. §9 says how to undo it.Rule counts: the counts in prose are bumped: 182 → 186 Prometheus rules, 210 → 214 in all, 188 → 192 on the Rules page.
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.yamlVerification
On the Pi, over SSH, read-only:
rpi-eeprom-updateprintedBOOTLOADER: update available, CURRENT 2025-06-13, LATEST 2026-10-30.Skipping automatic bootloader upgrade. current 1749807566 >= min 1746713597.flashromand then verifies it (/usr/bin/rpi-eeprom-update, lines 286–320).Against prometheus:
apt_upgrades_pending,node_systemd_unit_stateandnode_hwmon_temp_celsiusseries exist with the labels the tests use.chip="thermal_thermal_zone0". Its 7-day maximum was 57.85 °C.ALERTS{instance="heimdall"}held onlyHostRebooted, which isinfo.Checks:
promtool check rules rules/host.rules.yaml:SUCCESS: 67 rules found.promtool test rules tests/host.test.yaml:SUCCESS.python3 scripts/check_rule_tests.py:rule tests OK.python3 scripts/check_docs.py:docs OK — 186 Prometheus + 28 Loki rules../scripts/lint.sh: yamllint, ruff, shellcheck and actionlint pass.main: a localuv/--pip-argsproblem that has nothing to do with this change.make validateandamtoolroute test were not run.make validatepassesDeployed to the lab and confirmed working
Docs updated (
docs/, service README, ordocs/roadmap.md)🤖 Generated with Claude Code