Skip to content

Lab dead man's switch: Watchdog → the phone's watcher (lab-watchdog) - #149

Merged
MIERAI merged 1 commit into
mainfrom
lab-deadman
Nov 23, 2026
Merged

MIERAI merged 1 commit into
mainfrom
lab-deadman

Conversation

@MIERAI

@MIERAI MIERAI commented Nov 23, 2026

Copy link
Copy Markdown
Owner

The lab gets the same dead man's switch as the laptop. Alertmanager's always-firing Watchdog is POSTed every minute to the phone's watcher (http://100.80.225.15:9195/lab-watchdog). The watcher then reports aloud, on the laptop's speaker, when the lab's Prometheus → Alertmanager chain stops. This extends the existing mechanism (watch.py heartbeat checks) rather than adding a second one.

  • Why values and not notify.deadman: the product applies notify.deadman to prod clusters only, because a lab notifies nobody. So the lab's route is added through clusters.lab.components.monitoring.values.alertmanager.config, deep-merged over the platform's config. route.routes gets the Watchdog → deadman route, with the same timings as the product's (group_wait 0s, group_interval 1m, repeat 1s). receivers is replaced by null + deadman. Every other alert still goes to null.
  • Order: this goes first. The watcher's lab-watchdog check is then added through infrastructure-live (ansible --tags watch). Until then its POSTs get a 404, which is harmless.
  • Checked: the rendered lab Alertmanager config passes amtool check-config (v0.34.2): 2 receivers, 2 inhibit rules.

Render (product render.py v0.1.5, main → this branch):

  • laptop: the 28 Applications and the root are byte-identical.
  • lab: the 12 Applications are byte-identical. In the root, only platform-monitoring's alertmanager.config changes (+4 lines receiver deadman, +7 lines route).

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Rendered diff (as Argo CD renders: kustomize / Helm, against origin/main)

No change in the rendered manifests.

@MIERAI
MIERAI merged commit 7f1d3f8 into main Nov 23, 2026
2 checks passed
@MIERAI
MIERAI deleted the lab-deadman branch November 23, 2026 09:34
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.

1 participant