Proactive stale/failing product admin alerting #8

Closed
opened 2026-06-23 23:14:59 +00:00 by rbrooks · 1 comment
Owner

Target release: v1.1.0

Freshness historical samples, 24-hour counters, and cache hit/miss rates already exist. Add the remaining proactive piece.

Acceptance

  • Notify admins when critical products remain stale or failing beyond a configured threshold.

Source: docs/ROADMAP.md → Planned → Product Freshness Metrics and Alerting.

**Target release:** v1.1.0 Freshness historical samples, 24-hour counters, and cache hit/miss rates already exist. Add the remaining proactive piece. **Acceptance** - [ ] Notify admins when critical products remain stale or failing beyond a configured threshold. Source: `docs/ROADMAP.md` → Planned → Product Freshness Metrics and Alerting.
Contributor

Done in #96 (merged). A scheduler job (stale_product_alert_job) evaluates the critical feeds (nws_alerts, spc_fetch) and notifies admins when one stays stale (last success older than STALE_PRODUCT_ALERT_MINUTES) or failing, debounced on state transitions so it doesn't spam. Delivery is via the shared admin-alert helper (ADMIN_ALERT_WEBHOOK if set, else logged). With #73's /metrics also in place, an external Alertmanager can drive this too — the in-app job is the self-contained default.

Done in #96 (merged). A scheduler job (`stale_product_alert_job`) evaluates the critical feeds (`nws_alerts`, `spc_fetch`) and notifies admins when one stays stale (last success older than `STALE_PRODUCT_ALERT_MINUTES`) or failing, debounced on state transitions so it doesn't spam. Delivery is via the shared admin-alert helper (`ADMIN_ALERT_WEBHOOK` if set, else logged). With #73's `/metrics` also in place, an external Alertmanager can drive this too — the in-app job is the self-contained default.
Sign in to join this conversation.
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
rbrooks/WeatherBot#8
No description provided.