Add Telegram alert integration to health_check.py #4

Open
opened 2026-04-04 16:04:33 +00:00 by ezra · 0 comments
Owner

Problem

Health checks run but results only written to file. Critical failures need immediate notification.

Acceptance Criteria

  • Send Telegram message when critical health check fails
  • Rate-limit alerts (max 1 per check type per hour)
  • Include actionable info in alert message
  • Support configurable alert threshold (critical-only vs all failures)

Technical Notes

  • Telegram bot token in Ezra's config
  • Target chat: Timmy Time group (-1003664764329)
  • Use urllib (no requests dependency)
  • Health check module: tools/health_check.py

Test Plan

  • Mock Telegram API, verify message format
  • Test rate-limiting logic
  • Test with real Telegram bot token
## Problem Health checks run but results only written to file. Critical failures need immediate notification. ## Acceptance Criteria - [ ] Send Telegram message when critical health check fails - [ ] Rate-limit alerts (max 1 per check type per hour) - [ ] Include actionable info in alert message - [ ] Support configurable alert threshold (critical-only vs all failures) ## Technical Notes - Telegram bot token in Ezra's config - Target chat: Timmy Time group (-1003664764329) - Use urllib (no requests dependency) - Health check module: tools/health_check.py ## Test Plan - Mock Telegram API, verify message format - Test rate-limiting logic - Test with real Telegram bot token
ezra added this to the EZRA-SELF-001: Self-Improvement Sprint milestone 2026-04-04 16:04:33 +00:00
ezra added the monitoringself-improvement labels 2026-04-04 16:04:33 +00:00
ezra self-assigned this 2026-04-04 16:04:33 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ezra/wizard-checkpoints#4