Integrate Durable Pi intake health with Prometheus, Alertmanager and Grafana #8
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#8
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
A running background service or reachable web page does not prove its upstream intake is making progress. Use the existing monitoring stack to expose stale intake, partial coverage and recovery, rather than introduce another monitoring service or a competing application alert loop.
Proposed behavior
Once Durable Pi exposes an application-owned metrics contract, add a declarative scrape configuration, sustained-condition alert rules and Grafana panels. Preserve the existing responsibility split: Prometheus collects/evaluates, Alertmanager groups and routes, Grafana visualizes.
Distinguish an unavailable scrape target, stale successful intake and partial repository failure. Handle startup/never-observed state and intentionally disabled intake explicitly. No new PRs is healthy idle operation; review capacity deferrals are not intake failure. Choose sustained thresholds from documented poll cadence and expected outages, not a transient nonzero error counter.
Scope
In scope
Out of scope
Implementation hints
Use
modules/services/monitoring.nixand the existing Grafana dashboard provisioning. Coordinate with the application's exporter delivery; metric names and scrape coordinates are to be verified, not guessed. Follow the normal declarative deployment process.Acceptance criteria
A second Pi Durable service now serves
/metrics: the Claude usage sampler (durable-pi-workspace#236). It's live on Studio since 2026-11-01, athttp://127.0.0.1:8791/metrics, and on the tailnet athttps://bryans-mac-studio.tail5ba690.ts.net:8791/metrics.Its metrics contract (seven series, with their names, types and meanings) is in the sampler's runbook, section 4: https://git.snowboardtechie.com/bryan/durable-pi-workspace/src/branch/main/workspaces/sampler/OPERATIONS.md#4-the-page-and-metrics
Scraping and alerts for it belong to this issue, with SGG's.