feat(monitoring): content probes for six Studio services (#10) #13
No reviewers
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!13
Loading…
Reference in a new issue
No description provided.
Delete branch "n10-1-content-probes"
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?
Part of #10 (piece N10.1): Prometheus probes for the six services that until now only the Hermes watchdog checked, matching each response's content as well as its status.
What changes
services.monitoring.blackbox.contentProbes.<name> = { url; bodyMatches; }: a probe that is healthy only on a 2xx whose body matches a Go regular expression. Each gets its own blackbox module and is a target in the existingblackboxjob, labelledprobe="<name>", soServiceDownand the Service Health dashboard cover it without new rules.<title>Dashy</title>), Artifact Shelf (its generator marker), the SGG pre-review page and the Claude usage sampler (their/metricscounters), Grafana Alloy (monitoring.nix), and Jellyfin (hosts/studio.nix, beside its cask). Names match the Hermes watchdog's, which Dashy's status dots use.targetsorcontentProbes.modules/services/AGENTS.mddocuments the option.Checks
python3 scripts/test_monitoring_content_probes.py: Studio's wiring, the refusals,promtool check config, and the real blackbox_exporter with Studio's generated modules against a stand-in endpoint: each healthy body passes, a 200 with the wrong body fails, a 500 with the right body fails. With the match replaced by.*, the wrong-body cases fail.probe_success 1.test_monitoring_alert_webhook,test_studio_listener_exposure,test_dashy_status_api,test_artifact_shelf,test_pi_durable_module,test_monitoring_boot_safety,test_fseventsd_watchdogpass;test_monitoring_content_probes13/13 on the final head.darwin-rebuild build --flake .#studiobuilds;mbpanda6mbpevaluate.Live after the next
update-system.Review
Independent read-only Pi review on
81268ff: approve, no blocking or should-fix findings. Fixed from its nits: tests now pin Jellyfin's anchors, each probe's enable gating, and that the three modules evaluate on a host without monitoring (each proved by a mutation). Left as is: Dashy's probe URL assumes an IPv4 host, as its listener already does; the URL-uniqueness assertion compares exact strings. Deferred to N10.2/N10.3: alert text and the dashboard naming probes byproberather than URL.