Files
loki/scripts/hetzner
CatoandClaude Opus 5.5 8b3e635ddb feat(alerts): page once when a service is stuck repeating the same error (#1105)
Every host check asked "is X down?"; none asked "is X stuck doing the
same failing thing?" — and a stuck loop looks healthy to all of them.
loki-calendar-drain retried one unbookable event every 15 s from
2026-09-21 to 2026-10-08 (38,851 failures, a free-tier model call on
each) and nothing said a word.

host-check.sh now groups the last hour's error-shaped journal lines by
unit + digit-folded text; >= 120 repeats is a loop. One message per
unit (alert_once backoff, daily), N loops in a tick = one digest.
Heartbeats don't count. Dry-run on the box's real journal: catches the
calendar loop in 23 of 24 hours, one other hit (orangecat-2-app), no
noise. 6 new tests; the suite's journalctl stub now serves -o json.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 10:14:06 -07:00
..