diff --git a/README.md b/README.md index d04c29eb..b3ed4120 100644 --- a/README.md +++ b/README.md @@ -136,8 +136,8 @@ documents for different readers. at all. Every pinned digest is also scanned weekly for fixable HIGH and CRITICAL CVEs, and each image with findings has an open issue until a scan finds it clean. -- **Documented decisions and runbooks.** 118 ADRs covering what was chosen - and what was rejected — including the costs accepted knowingly; 54 +- **Documented decisions and runbooks.** 119 ADRs covering what was chosen + and what was rejected — including the costs accepted knowingly; 55 runbooks for the operations that are easy to get wrong at 1am, one of which is the handover page a successor reads first. Every critical alert links to one. @@ -236,9 +236,9 @@ inbound passes may still reach it. Data flow and the maintained Mermaid topology │ ├── architecture.md network.md hardware.md │ ├── observability.md security.md roadmap.md changelog.md │ ├── diagrams/ # the network diagram (SVG) and its predecessors -│ ├── adr/ # 118 ADRs — architecture decision records +│ ├── adr/ # 119 ADRs — architecture decision records │ ├── exercises/ # purple-team exercise records — see its README -│ └── runbooks/ # 54 runbooks; successor-handover.md is the front door +│ └── runbooks/ # 55 runbooks; successor-handover.md is the front door └── Makefile # make help ``` diff --git a/docs/adr/0119-put-the-office-wall-dashboard-on-a-pi-5-on-hicks.md b/docs/adr/0119-put-the-office-wall-dashboard-on-a-pi-5-on-hicks.md new file mode 100644 index 00000000..c0fdedc6 --- /dev/null +++ b/docs/adr/0119-put-the-office-wall-dashboard-on-a-pi-5-on-hicks.md @@ -0,0 +1,114 @@ +# ADR-0119: Put the office wall dashboard on a Pi 5 on Hicks + +**Status:** Accepted · 2026-11 · reuses the name `heimdall` that +[ADR-0102](0102-bridge-the-vtech-monitor-into-home-assistant-from-a-pi-on-skids.md) +gave a different Pi, superseded by +[ADR-0109](0109-leave-the-vtech-monitor-out-of-home-assistant.md) and never +bought + +## Context + +The office has a 40" 1080p television on its front wall, above the desk's +monitors and about seven feet from the chair. It was mounted on 2026-10-31 to +show a dashboard: the estate's state and the household's day, read at a glance. +A Raspberry Pi 5 to drive it arrived on 2026-11-16. Nothing in this repository +described either of them. + +The name `heimdall` is free. ADR-0102 gave it to a Pi on Skids, at `10.0.20.30`, +that would have bridged the baby monitor. ADR-0109 dropped that bridge, and +that Pi was never ordered. No reservation or firewall row was ever made for it. +This Pi takes the name for a different job on a different segment. + +Read from the Pi on 2026-11-17: + +- **The device.** A Raspberry Pi 5, 2 GB, on Raspberry Pi OS 13 (trixie), + booting from a 64 GB card. It idles at about 48 °C with `throttled=0x0`. +- **The desktop.** Raspberry Pi OS's own: `graphical.target`, an autologin + session on the console, labwc as the compositor. Chromium, `wlr-randr` and + `cec-ctl` are installed, and both HDMI ports expose a CEC device. +- **The network.** Wi-Fi only, on Hicks, through the basement eero, at + −45 dBm and 433 Mbit/s on 5 GHz. The OUI is Raspberry Pi's, so the MAC is + the hardware's own and a reservation by MAC holds. +- **SSH** accepted passwords as shipped. + +The question is where a device like this sits, what it may hold, and what may +reach it. It runs unattended, it renders pages, and it shows household data to +anyone standing in the office. + +## Decision + +1. **`heimdall` is a kiosk on Hicks, at `10.0.50.15`.** A Kea reservation + below the pool, beside `wearable-01` at `.14`. It joins over Wi-Fi from + behind the television, so nothing crosses the room from the rack. Hicks + already reaches `trinity:443` and `prometheus:3000` on its named passes, so + the screen needs **no new row** to read what it shows. +2. **It holds no credentials.** Chromium opens a page served by `trinity` and + nothing else. Every token a page needs is added server-side, by the service + or the proxy that serves it, never stored on the Pi or in the page. Until + the wall page exists, the kiosk shows Glance's Homelab page, which already + works that way (ADR-0098). The Pi trusts the tier's root in Chromium's own + certificate store, imported after its fingerprint is compared with a copy + already trusted (`build-the-tier-ca.md` §6). +3. **The household's details stay out of the repository.** The wall page's + code, layout and the Pi's build are committed. Names, calendars, places and + entity IDs live in `secrets/sensitive.sops.yaml`, as ADR-0100 did for the + start page's lists. `docs/security.md`'s section on what this repository + does not publish governs what the wall page's files may say. +4. **One Winterfell row: `10.0.99.20 → 10.0.50.15:9100/tcp`,** above the + block into Hicks, so `prometheus` scrapes `node_exporter` like any host. + That is what makes a hung kiosk, a hot Pi or a weak power supply + (`node_hwmon_temp_celsius`, the throttle state) visible without walking to + the wall. It is host- and port-scoped, so `firewall-claims.yaml` is + unchanged. +5. **Hardened like any unattended host.** Key-only SSH with root login off, + unattended-upgrades on, and the screen never blanked by the desktop. + Turning the television off at night is a separate step: by HDMI-CEC from + the Pi if the television obeys it, otherwise by switching the Pi's output + off on a schedule with `wlr-randr`. +6. **Rebuilt from the runbook, not backed up.** It keeps no state worth + keeping. [`build-heimdall.md`](../runbooks/build-heimdall.md) is the whole + of it. + +## Alternatives considered + +- **Skids, beside the other unattended devices.** Skids' rule is that nothing + on it initiates upward ([ADR-0102](0102-bridge-the-vtech-monitor-into-home-assistant-from-a-pi-on-skids.md) + decision 1). A kiosk has to fetch its page from `trinity`, so it would need + an upward pass, and Skids would no longer be the segment that starts nothing. + Hicks already carries the passes the screen needs. +- **A Home Assistant dashboard as the screen.** It suits the household half, + but the estate's figures live in Prometheus. Carrying them into Home + Assistant to show them would be a second copy of the monitoring data. +- **Grafana in kiosk mode, or a playlist.** Good for one trend graph, poor for + a calendar and a lock state. It can still be one panel on the wall page. +- **MagicMirror², Dashy, DAKboard and similar.** Each is a third look beside + Glance and Grafana and a third copy of data already collected. DAKboard + also puts the household's calendar on a vendor's server. +- **A Glance page styled for the television.** Glance's theme is set once for + the whole instance (`theme:` in `glance.yml`), so restyling one page for the + wall would restyle the start page too. +- **Ethernet.** It means a cable along the raceway from the rack in the alcove + to the front wall. At −45 dBm, Wi-Fi does not need it. It stays the fix if + the link proves unreliable. + +## Consequences + +- **The second pass from Winterfell into Hicks,** after ADR-0112's echo + requests to the eeros. `node_exporter` answers unauthenticated, so anything + on Hicks can read the Pi's metrics. That is the same residual as + `smaug`'s on CasaBonita (`docs/security.md`), and it discloses only the Pi's + own counters. +- **The office shows the household's day.** Anyone in the room can read the + screen. The webcam faces the chair, and the television is behind it, so the + screen never appears on a call. +- **The Pi is on the trusted segment.** It runs a browser all day, so the + browser and the OS take updates unattended, and SSH accepts keys only. A + compromised Pi is a host on Hicks, no more and no less, which is why it + holds nothing. +- **Not yet verified:** the HDMI output, the kiosk on the television, and + whether the 2014 television obeys CEC. The micro-HDMI cable arrives after + this ADR. The runbook's steps record each when it is done, and the + changelog records the CEC result. +- **Reopened by:** the wall page needing a source that a server-side token + cannot serve, a second screen elsewhere in the house, or Hicks being + narrowed so the screen's passes no longer apply. diff --git a/docs/changelog.md b/docs/changelog.md index 0b8c9e91..66a82e9f 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -19,6 +19,32 @@ docstring gives: it is a record, not a claim about now. ## 2026-11-17 +- **`heimdall`, the office wall dashboard, is on Hicks at `10.0.50.15`** + ([ADR-0119](adr/0119-put-the-office-wall-dashboard-on-a-pi-5-on-hicks.md), + [`build-heimdall.md`](runbooks/build-heimdall.md)). A Raspberry Pi 5 drives + the 40" television mounted in the office on 2026-10-31. It holds no + credentials and shows pages served by `trinity`: Glance's Homelab page until + the wall page is built. + - **Read from the Pi first:** Raspberry Pi OS 13 with its own desktop, + 47.7 °C at idle with no throttling, and −45 dBm on 5 GHz through the + basement eero. + - **SSH accepted passwords as shipped.** It is key-only now, with root + login off, and unattended-upgrades is installed. + - **A Kea reservation and a second Winterfell pass into Hicks,** + `10.0.99.20 → 10.0.50.15:9100/tcp`, after ADR-0112's echo pass to the + eeros. `curl` from `prometheus` read the exporter the same day, and + `targets/node.yaml` scrapes it as `role: display`. + - **`InstanceDown` does not page for it.** The rule now excludes + `role="display"`, with a unit test for the quiet case. A dead screen shows + itself to anyone in the room. + - **The name was free.** ADR-0102 gave `heimdall` to a Pi on Skids that + ADR-0109 dropped and that was never bought. + - **Not yet verified:** the HDMI output, the kiosk on the screen, and + whether the television obeys HDMI-CEC. The cable had not arrived. + - **Seen on the way:** the Pi took an IPv6 address on Hicks from a router + advertisement. That was the eeros acting as Thread border routers, as the + entry below records. The decision is + [#1554](https://github.com/Gerrrt/HomeLab/issues/1554). - **Hicks hosts were being offered IPv6, by the eeros and not by pfSense.** `security.md` said that nothing inside the estate is offered IPv6. The measurement behind that ([#353](https://github.com/Gerrrt/HomeLab/issues/353), diff --git a/docs/diagrams/current/network.png b/docs/diagrams/current/network.png index 6c72690c..50a1e693 100644 Binary files a/docs/diagrams/current/network.png and b/docs/diagrams/current/network.png differ diff --git a/docs/diagrams/current/network.svg b/docs/diagrams/current/network.svg index 6d52d09f..d3e66cfd 100644 --- a/docs/diagrams/current/network.svg +++ b/docs/diagrams/current/network.svg @@ -412,17 +412,23 @@ .14 Apple Watch + + + +heimdall +.15 +Raspberry Pi 5 · wall dashboard · Wi-Fi + - - -eero mesh · trusted -.11–.13 -3 × eero Pro 6E, bridged -one wired backhaul, two meshed - - -Corporate laptops get the same rules -as everything else on this segment. + + +eero mesh · trusted +.11–.13 +3 × eero Pro 6E, bridged +one wired backhaul, two meshed + + +Corporate laptops get the same rules. diff --git a/docs/hardware.md b/docs/hardware.md index a423247e..114122dc 100644 --- a/docs/hardware.md +++ b/docs/hardware.md @@ -335,6 +335,22 @@ The BMC and the host it manages carry different names and different addresses: `shiva` is the iLO, `Saruman` is the hypervisor at `10.0.30.20`. Earlier revisions of this repository treated `shiva` as the hypervisor itself. +## Wall display + +The office's dashboard, outside the rack +([ADR-0119](adr/0119-put-the-office-wall-dashboard-on-a-pi-5-on-hicks.md), +[`build-heimdall.md`](runbooks/build-heimdall.md)). + +| Part | What | Notes | +| --- | --- | --- | +| Screen | Changhong 40" 1080p LED television (2014) | On a SANUS single-stud tilt mount on the office's front wall, above the desk's monitors, since 2026-10-31. About seven feet from the chair | +| `heimdall` | Raspberry Pi 5, 2 GB, 64 GB microSD | Behind the screen, on Hicks over Wi-Fi. Raspberry Pi OS 13 with its own desktop, Chromium in kiosk mode. Arrived 2026-11-16 | +| Power | Official 27 W USB-C supply for the Pi; the screen's own cord | Neither is on the UPS. Which outlet they reach is not yet settled: the office's right wall and alcove have none | + +The Pi is driven from its HDMI port nearest the USB-C power port and forced to +1080p at boot (`build-heimdall.md` §5). It keeps no state and is rebuilt from +the runbook rather than backed up. + ## Accessories - 1U rackmount tray for the ProDesk Mini[^ProDeskRackmount] diff --git a/docs/network.md b/docs/network.md index 611f8b30..597562df 100644 --- a/docs/network.md +++ b/docs/network.md @@ -257,6 +257,15 @@ listed under [Hicks](#hicks--vlan-50--trusted), and nothing else. [#1228](https://github.com/Gerrrt/HomeLab/issues/1228), and `ping -c3` from `prometheus` got an answer from an eero on each of the three segments the same day, before the job's targets were enabled. +- **A second row into Hicks, in force since 2026-11-17:** `10.0.99.20 → + 10.0.50.15:9100/tcp`, above the *Block access to …* rows, so `prometheus` + scrapes `node_exporter` on `heimdall`, the office wall dashboard. It is + host- and port-scoped like the `eeros` row above, so Winterfell's catch-all + still reaches no segment. + [ADR-0119](adr/0119-put-the-office-wall-dashboard-on-a-pi-5-on-hicks.md) + records the decision, and + [`build-heimdall.md`](runbooks/build-heimdall.md) §4 created it. `curl` from + `prometheus` read the exporter the same day. - **Three rules into CasaBonita for the TV, in force since 2026-10-19:** `10.0.99.40 → 10.0.40.40` on `3001/tcp` and `9/udp` (pass) and `3000/tcp` (reject), above *Block access to CasaBonita*. They let Home Assistant drive @@ -326,6 +335,7 @@ though not the only one — ImaginationLAN has two host-scoped passes to | mobile-01 | `10.0.50.105` | `fe:ee:aa:xx:xx:xx` | Apple iPhone[^iPhone16] | iOS 26 | Roaming | Phone | | mobile-02 | `10.0.50.109` | `fa:cc:aa:xx:xx:xx` | Google Pixel[^Pixel] | Android 13 | Roaming | Phone | | wearable-01 | `10.0.50.14` | `f6:b8:72:xx:xx:xx` | Apple Watch[^Watch10] | watchOS 26 | Roaming | Watch | +| heimdall | `10.0.50.15` | `88:a2:9e:xx:xx:xx` | Raspberry Pi 5 | Raspberry Pi OS 13 | Basement | Wall dashboard | ### Notes diff --git a/docs/runbooks/build-heimdall.md b/docs/runbooks/build-heimdall.md new file mode 100644 index 00000000..f20e56ca --- /dev/null +++ b/docs/runbooks/build-heimdall.md @@ -0,0 +1,197 @@ +# Runbook: Build `heimdall`, the office wall dashboard + +Turn a Raspberry Pi 5 into the kiosk behind the office television: a +reserved address on Hicks, key-only SSH, updates on their own, Chromium +full-screen on a page served by `trinity`, and `node_exporter` scraped by +`prometheus` +([ADR-0119](../adr/0119-put-the-office-wall-dashboard-on-a-pi-5-on-hicks.md)). + +**Target:** `heimdall` over SSH, `morpheus`'s web UI, and `prometheus` +**Time:** ~45 minutes, plus a reboot +**Needs:** Hicks, an SSH key already on the Pi, and the micro-HDMI cable +**Reversible:** §9 + +--- + +## Why this exists + +The Pi keeps no state worth backing up, so this runbook is how it is +replaced: a new card, flashed from `oracle`, and these steps in order. It +holds no credentials. Anything a page needs is added on `trinity`, so losing +the Pi loses nothing but the time this takes. + +## 0. The starting point + +Flash Raspberry Pi OS (64-bit, with desktop) with Raspberry Pi Imager. Set the +hostname to `heimdall`, the user, an SSH public key and the Hicks Wi-Fi in the +Imager's settings. The first boot lands on an autologin desktop under labwc. + +Read the Pi back before changing it. On 2026-11-17 this was: + +| Check | Command | Read | +| --- | --- | --- | +| Model and OS | `tr -d '\0' < /proc/device-tree/model; head -1 /etc/os-release` | Raspberry Pi 5 Model B Rev 1.1, Debian 13 (trixie) | +| Health | `vcgencmd measure_temp; vcgencmd get_throttled` | 47.7 °C, `throttled=0x0` | +| Desktop | `systemctl get-default; pgrep -a labwc` | `graphical.target`, `labwc -m` | +| Wi-Fi | `iw dev wlan0 link` | 5 GHz, −45 dBm, 433 Mbit/s | +| CEC | `ls /dev/cec*` | `/dev/cec0 /dev/cec1` | + +`throttled` must read `0x0`. Anything else means the supply is short. +Use the official 27 W USB-C supply: a television's USB port cannot run a Pi 5. + +## 1. SSH by key only + +Prove a key login works from a second terminal first. Then: + +```bash +printf 'PasswordAuthentication no\nKbdInteractiveAuthentication no\nPermitRootLogin no\n' \ + | sudo tee /etc/ssh/sshd_config.d/10-keys-only.conf +sudo sshd -t && sudo systemctl reload ssh +sudo sshd -T | grep -E '^(passwordauthentication|permitrootlogin|pubkeyauthentication) ' +``` + +Expect `passwordauthentication no`, `permitrootlogin no` and +`pubkeyauthentication yes`. Open a new session before closing the old one. + +## 2. Updates and the exporter + +```bash +sudo apt update && sudo apt install -y unattended-upgrades prometheus-node-exporter libnss3-tools +systemctl is-active prometheus-node-exporter # active +``` + +`unattended-upgrades` installs security updates daily, Chromium among them. + +## 3. The reservation + +On `morpheus`, under Services → DHCP Server → Hicks, add a static mapping: +`heimdall`, `10.0.50.15`, and the MAC `ip link show wlan0` prints on the Pi. +`.15` is below the `.100–.200` pool, beside `wearable-01`. Reboot the Pi +rather than bouncing Wi-Fi over SSH, then: + +```bash +ip -br addr show wlan0 # 10.0.50.15/24 +``` + +The address in use carries Raspberry Pi's OUI (`88:a2:9e`), so it is the +hardware MAC and not a randomised one, and the reservation holds. + +## 4. The firewall pass, and the scrape + +On `morpheus`, under Firewall → Rules → Winterfell, add a pass **above** the +row that blocks access to Hicks, beside the `eeros` echo pass: + +| Field | Value | +| --- | --- | +| Protocol | TCP | +| Source | `10.0.99.20` | +| Destination | `10.0.50.15`, port `9100` | +| Description | `prometheus scrapes heimdall node_exporter` | + +From `prometheus`: + +```bash +curl -s 10.0.50.15:9100/metrics | grep -m3 node_ +``` + +Done on 2026-11-17: it returned `node_arp_entries{device="wlan0"} 1`. The +`heimdall` target in `stacks/observability/prometheus/targets/node.yaml` is +picked up once `prometheus` has converged on `main` (ADR-0021) and reloaded +the file, within five minutes of that. Check `up{instance="heimdall"}` reads 1. + +## 5. HDMI + +Use the micro-HDMI port **next to the USB-C power port** (`HDMI-A-1`). Make +the Pi drive 1080p even when the television is off at boot. Otherwise it +finds no display and the kiosk comes up on nothing: + +```bash +sudo cp /boot/firmware/cmdline.txt /boot/firmware/cmdline.txt.bak +sudo sed -i '1 s/$/ video=HDMI-A-1:1920x1080@60D/' /boot/firmware/cmdline.txt +cat /boot/firmware/cmdline.txt # still ONE line, ending in the video= part +``` + +`cmdline.txt` must stay a single line, or the Pi does not boot. If it does +not boot, put the card in `oracle` and restore the `.bak`. After the reboot: + +```bash +cat /sys/class/drm/card1-HDMI-A-1/status # connected +``` + +## 6. Trust the tier's root, in Chromium's store + +Chromium on Linux reads its own NSS database, not the system's store, so +`update-ca-certificates` does nothing for it. First print the root's +fingerprint from a copy you already trust, on `prometheus` or `trinity` +([`build-the-tier-ca.md`](build-the-tier-ca.md) §6): + +```bash +openssl x509 -in certificates/tier-ca.pem -noout -sha256 -fingerprint +``` + +On the Pi, fetch it once without verification and compare before trusting: + +```bash +curl -kfsS -o ~/tier-ca.crt https://home.matrix.elysium/tier-ca.crt +openssl x509 -in ~/tier-ca.crt -noout -sha256 -fingerprint # must match +mkdir -p ~/.pki/nssdb +certutil -d sql:$HOME/.pki/nssdb -N --empty-password 2>/dev/null +certutil -d sql:$HOME/.pki/nssdb -A -t "C,," -n "matrix.elysium tier CA" -i ~/tier-ca.crt +certutil -d sql:$HOME/.pki/nssdb -L # lists it, trust C,, +``` + +If the fingerprints differ, delete the file and find out what answered on 443. + +## 7. The kiosk + +```bash +mkdir -p ~/.config/labwc +echo 'chromium --kiosk --noerrdialogs --disable-infobars --password-store=basic https://start.matrix.elysium/homelab &' \ + >> ~/.config/labwc/autostart +sudo raspi-config nonint do_blanking 1 +sudo reboot +``` + +The page is Glance's Homelab page until the wall page exists. When it does, +this line's URL is the only change. `--password-store=basic` stops Chromium +asking for a keyring at boot, which would otherwise sit on the screen. +Blanking off keeps the desktop from turning the screen off. §8 turns the +television off instead. + +**Verify at the wall:** after a reboot, the page fills the screen with no +address bar, no padlock warning and no keyring prompt. + +## 8. The television, on and off + +Ask whether the television takes orders over HDMI-CEC: + +```bash +cec-ctl -d /dev/cec0 --playback -S # the TV appears as device 0 +cec-ctl -d /dev/cec0 --to 0 --standby # it goes off +cec-ctl -d /dev/cec0 --to 0 --image-view-on # it comes back +``` + +If it obeys, schedule those two commands for the hours the office is empty. +If it does not, switch the Pi's output off instead. The television then shows +"no signal" and, on most sets, sleeps: + +```bash +wlr-randr --output HDMI-A-1 --off +wlr-randr --output HDMI-A-1 --on +``` + +`wlr-randr` talks to the running compositor, so run it as the desktop's user +with `WAYLAND_DISPLAY` set (`wayland-0` under labwc). Record which one worked +in the changelog. + +## 9. Undo + +- **The pass:** delete the Winterfell row from §4, and remove the `heimdall` + target from `node.yaml` in the same change. Otherwise the scrape stays at + `up == 0` for good. Nothing alerts on that: `InstanceDown` excludes + `role="display"`, so a target left behind is silently dead, not loud. +- **The reservation:** delete the static mapping. The Pi falls back to a pool + lease. +- **The kiosk:** remove the line from `~/.config/labwc/autostart`. +- **The root:** `certutil -d sql:$HOME/.pki/nssdb -D -n "matrix.elysium tier CA"`. +- **The boot line:** restore `/boot/firmware/cmdline.txt.bak`. diff --git a/docs/security.md b/docs/security.md index c63dabb2..9ef2d705 100644 --- a/docs/security.md +++ b/docs/security.md @@ -480,6 +480,14 @@ them, so the residual is that `prometheus` learns whether each is up. The exporter that sends the echo keeps `cap_drop: [ALL]`. It pings over an unprivileged datagram socket, not a raw one. +**A second into Hicks exists since 2026-11-17** +([ADR-0119](adr/0119-put-the-office-wall-dashboard-on-a-pi-5-on-hicks.md)): +`prometheus` to `heimdall`, the office wall dashboard, at +`10.0.50.15:9100/tcp`, for `node_exporter`. It carries the same residual as +`smaug`'s below. The endpoint is unauthenticated, so anything on Hicks can +read the Pi's own counters. The Pi itself holds no credentials: the pages it +shows are served by `trinity`, and their tokens are added there. + One of CasaBonita's passes is a monitoring pass, and it carries a residual worth naming. `10.0.99.20 → 10.0.40.30:9100` lets Prometheus scrape `node_exporter` on the NAS ([#256](https://github.com/Gerrrt/HomeLab/issues/256)), and that diff --git a/stacks/observability/prometheus/rules/host.rules.yaml b/stacks/observability/prometheus/rules/host.rules.yaml index bab34ba3..7d05b931 100644 --- a/stacks/observability/prometheus/rules/host.rules.yaml +++ b/stacks/observability/prometheus/rules/host.rules.yaml @@ -6,8 +6,10 @@ groups: - alert: InstanceDown # speedtest-tracker is excluded: a measurement tool being unreachable # is not worth a page. SpeedtestTrackerDown in internet.rules.yaml is - # the same condition at warning (#914). - expr: up{job!="speedtest-tracker"} == 0 + # the same condition at warning (#914). So is role="display", + # `heimdall`, the office wall dashboard (ADR-0119): a dead screen + # shows itself to anyone in the room, and nothing depends on it. + expr: up{job!="speedtest-tracker", role!="display"} == 0 for: 5m labels: component: host diff --git a/stacks/observability/prometheus/targets/node.yaml b/stacks/observability/prometheus/targets/node.yaml index 67f5e84e..31f4ed4a 100644 --- a/stacks/observability/prometheus/targets/node.yaml +++ b/stacks/observability/prometheus/targets/node.yaml @@ -100,3 +100,24 @@ instance: smaug role: nas vlan: "40" + +# --- heimdall ------------------------------------------------------------ +# +# The office wall dashboard, a Raspberry Pi 5 on Hicks (ADR-0119). Scraped +# over the one Winterfell pass `10.0.99.20 -> 10.0.50.15:9100/tcp`, which +# build-heimdall.md section 4 created on 2026-11-17. The exporter is Debian's +# `prometheus-node-exporter` package. The same day, from this host: +# +# curl -s 10.0.50.15:9100/metrics | grep -m3 node_ +# +# answered with node_arp_entries{device="wlan0"} 1. +# +# `role: display` is what keeps InstanceDown from paging for it +# (rules/host.rules.yaml): a dead screen shows itself, and what this scrape is +# for is the Pi's temperature and throttle state on a wall nobody watches. + +- targets: ["10.0.50.15:9100"] + labels: + instance: heimdall + role: display + vlan: "50" diff --git a/stacks/observability/prometheus/tests/host.test.yaml b/stacks/observability/prometheus/tests/host.test.yaml index 5fdabfc9..261d7207 100644 --- a/stacks/observability/prometheus/tests/host.test.yaml +++ b/stacks/observability/prometheus/tests/host.test.yaml @@ -123,7 +123,8 @@ tests: # All 14 were killed. If you change a rule here, re-run them: # # InstanceDown up == 0 -> up == 1; for: 5m -> 0m; - # job!= -> job= (the speedtest-tracker case below) + # job!= -> job= (the speedtest-tracker case below); + # role!= -> role= (the display case below) # HostDiskCritical < 0.10 -> < 0.01; drop fstype!~"tmpfs|overlay"; # for: 15m -> 0m # HostMemoryPressure < 0.10 -> < 0.01; for: 15m -> 0m @@ -194,6 +195,21 @@ tests: alertname: InstanceDown exp_alerts: [] + # --- InstanceDown: quiet for the wall display, which does not page -------- + # `heimdall` (ADR-0119) is scraped for its temperature and throttle state, + # not watched for liveness: a dead screen shows itself to anyone in the + # office. Down for twenty minutes, well past `for: 5m`, and still quiet. + # The smaug case below, with no `role`, is the pair that proves the + # exclusion is that narrow. + - interval: 1m + input_series: + - series: 'up{instance="heimdall",job="node",role="display",vlan="50"}' + values: "0x20" + alert_rule_test: + - eval_time: 15m + alertname: InstanceDown + exp_alerts: [] + # --- InstanceDown: fires for a SCRAPED HOST, naming it rather than its port - # `smaug` is the estate's first scraped host (#256, ADR-0016): CasaBonita is # terminal-outward, so the NAS cannot push and Prometheus reaches in over