Files
blog/content/posts/commits/2026-05-21-commit-d8681e4.md
Betty 46a16d44c6
Some checks failed
Hugo Build & Deploy / build-deploy (push) Has been cancelled
post: commit d8681e4 in bojemoi
2026-05-21 14:18:49 +02:00

60 lines
1.7 KiB
Markdown

---
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 <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(-)
```