Repository navigation
Lab dead man's switch: Watchdog → the phone's watcher (lab-watchdog) - #149
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Rendered diff (as Argo CD renders: kustomize / Helm, against
|
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.
The lab gets the same dead man's switch as the laptop. Alertmanager's always-firing
Watchdogis 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.notify.deadman: the product appliesnotify.deadmanto prod clusters only, because a lab notifies nobody. So the lab's route is added throughclusters.lab.components.monitoring.values.alertmanager.config, deep-merged over the platform's config.route.routesgets the Watchdog →deadmanroute, with the same timings as the product's (group_wait 0s, group_interval 1m, repeat 1s).receiversis replaced bynull+deadman. Every other alert still goes tonull.lab-watchdogcheck is then added through infrastructure-live (ansible--tags watch). Until then its POSTs get a 404, which is harmless.amtool check-config(v0.34.2): 2 receivers, 2 inhibit rules.Render (product render.py v0.1.5, main → this branch):
alertmanager.configchanges (+4 lines receiverdeadman, +7 lines route).🤖 Generated with Claude Code