Polls /summary on VPS over Tailscale every 60s; computes freshness locally from last_update epoch (never trusts self-reported status). Alerts via Telegram Bot API directly after 3 consecutive failures; sends recovery message on heal. State (fail_count, alerted) persisted to volume so debounce survives restarts. - services/brain-watchdog/: Python service, no external deps (stdlib only) - hosts/piha/runtime/brain-watchdog/: override with mem_limit 64m - hosts/piha/services.yaml + inventory/topology.yaml: manifest entries Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
8 lines
112 B
Plaintext
8 lines
112 B
Plaintext
CONTROL_PLANE_URL=
|
|
STALE_THRESHOLD=600
|
|
INTERVAL=60
|
|
FAILS_BEFORE_ALERT=3
|
|
TG_TOKEN=
|
|
TG_CHAT_ID=
|
|
HEALTHCHECKS_URL=
|