Alexander Whitestone
9fa0a59761
Dependency Audit / Audit Python dependencies (pull_request) Failing after 4s
Docker Build and Publish / build-and-push (pull_request) Failing after 19s
Nix / nix (ubuntu-latest) (pull_request) Failing after 2s
Secret Scan / Scan for secrets (pull_request) Failing after 2s
Supply Chain Audit / Scan PR for supply chain risks (pull_request) Failing after 2s
Tests / test (pull_request) Failing after 6s
Nix / nix (macos-latest) (pull_request) Has been cancelled
feat: add Observatory health monitoring & alerting for running services
Implements Bezalel Epic-003 — a lightweight monitoring script that:
- Checks gateway and API server process liveness
- Monitors disk, memory, and CPU thresholds (warn/critical levels)
- Probes webhook and API server HTTP endpoints for responsiveness
- Verifies SQLite database connectivity and size
- Sends Telegram alerts when checks degrade or recover (within 60s)
- Posts daily digest reports summarising 24h health, SLO status, error counts
- Persists 30 days of health snapshots in SQLite (~/.hermes/observatory.db)
- Tracks alerts_sent for trend analysis
- Defines and tracks SLOs: gateway uptime ≥99.5%, webhook p95 latency ≤2s
Usage:
python observatory.py --check # one-shot check
python observatory.py --daemon # continuous 60s poll
python observatory.py --digest # print daily digest
python observatory.py --send-digest # send digest via Telegram
python observatory.py --slo # print SLO report
python observatory.py --history 20 # show last 20 records
Config via env: OBSERVATORY_ALERT_CHAT_ID, TELEGRAM_BOT_TOKEN, etc.
Adds psutil optional dependency group in pyproject.toml.
45 unit tests covering checks, persistence, alerting, digest, SLOs, and CLI.
Fixes #147
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-06 21:59:14 -04:00
..
2026-03-28 23:45:53 -07:00
2026-03-31 00:37:14 +00:00
2026-03-29 21:24:17 -07:00
2026-03-30 23:15:11 +00:00
2026-03-29 21:54:36 -07:00
2026-03-21 09:34:00 -07:00
2026-03-24 07:30:25 -07:00
2026-04-01 03:49:48 +00:00
2026-03-29 16:52:52 -07:00
2026-03-31 21:06:42 +00:00
2026-03-17 02:02:33 -07:00
2026-03-17 02:53:33 -07:00
2026-03-17 01:50:59 -07:00
2026-03-17 04:24:27 -07:00
2026-03-27 13:02:52 -07:00
2026-03-26 19:21:34 -07:00
2026-03-29 21:06:35 -07:00
2026-03-27 09:45:25 -07:00
2026-03-17 04:46:15 -07:00
2026-03-25 15:00:33 -07:00
2026-03-21 09:42:07 -07:00
2026-03-26 17:58:40 -07:00
2026-03-17 02:53:33 -07:00
2026-03-20 04:35:17 -07:00
2026-03-17 02:05:26 -07:00
2026-03-23 06:20:19 -07:00
2026-03-20 06:04:33 -07:00
2026-03-29 23:59:07 -07:00
2026-03-30 08:10:14 -07:00
2026-03-29 20:10:00 -07:00
2026-03-18 15:22:51 -07:00
2026-03-29 16:04:53 -07:00
2026-03-23 16:02:06 -07:00
2026-03-27 21:42:09 -07:00
2026-03-23 06:40:05 -07:00
2026-03-22 05:58:26 -07:00
2026-03-25 17:31:56 -07:00
2026-03-26 14:34:31 -07:00
2026-03-18 02:42:58 -07:00
2026-03-31 19:46:23 +00:00
2026-03-26 14:35:31 -07:00
2026-03-31 19:56:16 +00:00
2026-04-05 15:48:10 +00:00
2026-03-17 03:44:44 -07:00
2026-03-17 02:53:33 -07:00
2026-03-17 02:53:33 -07:00
2026-03-29 15:47:19 -07:00
2026-03-24 08:19:23 -07:00
2026-03-19 21:24:53 +01:00
2026-03-17 23:40:22 -07:00
2026-03-20 15:41:06 -04:00
2026-04-01 02:45:36 +00:00
2026-03-31 00:37:14 +00:00
2026-04-06 21:59:14 -04:00
2026-03-16 06:35:46 -07:00
2026-03-28 14:55:18 -07:00
2026-03-29 20:05:59 -07:00
2026-03-28 11:14:54 -07:00
2026-04-05 16:15:26 +00:00
2026-03-29 21:53:28 -07:00
2026-03-29 16:04:53 -07:00
2026-03-26 13:49:43 -07:00
2026-03-17 02:53:33 -07:00
2026-03-17 02:53:33 -07:00
2026-03-27 09:57:50 -07:00
2026-03-19 10:34:44 -07:00
2026-03-29 16:04:53 -07:00
2026-03-28 11:36:59 -07:00
2026-03-25 18:22:21 -07:00
2026-03-31 16:35:40 +00:00
2026-03-19 15:16:35 +01:00
2026-03-28 13:41:23 -07:00
2026-03-28 16:53:14 -07:00
2026-04-01 02:08:20 +00:00
2026-03-16 23:48:14 -07:00
2026-03-21 09:41:17 -07:00