1.7 KiB
1.7 KiB
title, date, draft, tags, categories, summary, author
| title | date | draft | tags | categories | summary | author | ||||
|---|---|---|---|---|---|---|---|---|---|---|
| [bojemoi] feat(mail): ajout mail-watchdog — tests périodiques + métriques Prometheus | 2026-05-21T14:18:48+02:00 | false |
|
|
Commit d8681e4 par Betty dans bojemoi | Betty |
Commit d8681e4
| Repository | bojemoi |
| Branch | main |
| Author | Betty |
| Hash | d8681e42dc2234a4cbe9cff32d5fe1b37cb5388f |
Description
Service mail-watchdog (Python, port 9355) qui envoie un email de test toutes les 10 min via postfix:25 → protonmail-bridge pour valider la chaîne complète. Expose 4 métriques Prometheus :
- mail_watchdog_last_success_timestamp
- mail_watchdog_send_total / send_failures_total
- mail_watchdog_send_duration_seconds
Alertes ajoutées : MailWatchdogDown (scrape KO 5m) + MailSendFailed (aucun succès depuis 30min). Alloy config bumped v5 → v6.
Fix: MAIL_FROM=watchdog@bojemoi.lab (postfix reject_unauth_destination n'autorise que les senders du domaine bojemoi.lab).
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
Files Changed
A mail-watchdog/Dockerfile.mail-watchdog
A mail-watchdog/mail_watchdog/__main__.py
A mail-watchdog/requirements.txt
M stack/01-service-hl.yml
M volumes/alloy/config/config.alloy
M volumes/prometheus/rules/alerts.yml
Diff Summary
mail-watchdog/Dockerfile.mail-watchdog | 10 ++++
mail-watchdog/mail_watchdog/__main__.py | 83 +++++++++++++++++++++++++++++++++
mail-watchdog/requirements.txt | 1 +
stack/01-service-hl.yml | 48 ++++++++++++++++++-
volumes/alloy/config/config.alloy | 6 +++
volumes/prometheus/rules/alerts.yml | 21 +++++++++
6 files changed, 167 insertions(+), 2 deletions(-)