Make Prometheus the only service monitor #10
Labels
No labels
ready-for-agent
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bryan/nix-configs#10
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem / Motivation
Two systems watch the Studio's services. A Hermes job polls 15 pages every 5 minutes and alerts in Matrix. Prometheus probes five and alerts by email and, through a Hermes webhook, in Matrix. Four services are checked by both. Hermes is being retired.
Proposed behavior
Prometheus is the only monitor and owns all alerting. Scripts that measure or repair something keep running and report to Prometheus through metrics files.
Scope
In scope
services.monitoring.alertWebhookpointing at the bot service, so Steve posts to Studio Alerts.~/.local/state/hermes/studio-service-watchdog.json.Out of scope
Implementation hints
Acceptance criteria
Decision record:
vault/decisions/2026-11-09-pi-as-primary-harness.mdinbryan/dotfiles-workspace(commit 321ed03).Parent: bryan/dotfiles-workspace#30.
Pieces
Each piece is one Pi session. The full breakdown and the loop's rules are in
vault/plans/pi-primary-harness-work-breakdown.mdinbryan/dotfiles-workspace.8dbe59c(#13); live after the nextupdate-system.075ccf0(#21); Studio builds; Alertmanager's webhook goes to the bot service, where Steve posts into Studio Alerts. Live 2026-11-11 afterupdate-system: a test alert's firing and resolved notices were each posted by Steve, with no failed webhook or email notification.dd9824a(#16); live afterupdate-system, and every dot still green 16 minutes after the Hermes job was paused.c861ef1(#22); Studio builds; the SGG preview watchdog's rules (silent, blocked, a preview needing attention) beside the bot service's job clock and failed-job rules. Live after the nextupdate-system.ae5cfaa(#14); rules proved withpromtool test rules; live after the nextupdate-system.Follow-up of the status-dots change (#16): #19 (
392e74a) lists Studio's Pi Durable Dashy links only while their services are enabled and have a Serve port, which is when their probes exist. That fixes the 5scripts/test_pi_durable_module.pyfailures on main sincedd9824a. Studio's built system is unchanged (same store path), so no rebuild is needed for it.