From 46a16d44c628028002905d176327ea0fbfd8a0b8 Mon Sep 17 00:00:00 2001 From: Betty Date: Thu, 21 May 2026 14:18:48 +0200 Subject: [PATCH] post: commit d8681e4 in bojemoi --- .../commits/2026-05-21-commit-d8681e4.md | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 content/posts/commits/2026-05-21-commit-d8681e4.md diff --git a/content/posts/commits/2026-05-21-commit-d8681e4.md b/content/posts/commits/2026-05-21-commit-d8681e4.md new file mode 100644 index 0000000..5fed167 --- /dev/null +++ b/content/posts/commits/2026-05-21-commit-d8681e4.md @@ -0,0 +1,59 @@ +--- +title: "[bojemoi] feat(mail): ajout mail-watchdog — tests périodiques + métriques Prometheus" +date: 2026-05-21T14:18:48+02:00 +draft: false +tags: ["commit", "bojemoi", "main"] +categories: ["Git Activity"] +summary: "Commit d8681e4 par Betty dans bojemoi" +author: "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 + +### 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(-) +```