ajoute la supervision : règles d'alerte Prometheus, relais ntfy, Uptime Kuma
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
d21c6ef544
commit
aa31b6112f
12 changed files with 432 additions and 0 deletions
|
|
@ -0,0 +1,18 @@
|
|||
[Unit]
|
||||
Description=Relais Alertmanager -> ntfy (Syllabus)
|
||||
# Géré par Ansible (rôle supervision) — ne pas modifier à la main.
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/python3 /usr/local/sbin/alertmanager-ntfy.py
|
||||
Restart=on-failure
|
||||
# Durcissement minimal : ce service lit un secret (fichier webhook), pas de
|
||||
# raison qu'il écrive où que ce soit ou touche au reste du système.
|
||||
NoNewPrivileges=true
|
||||
ProtectSystem=strict
|
||||
PrivateTmp=true
|
||||
ReadOnlyPaths=/root/.alertes-webhook
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue