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:
Adam Belkacemi 2026-10-07 21:20:01 +02:00
parent d21c6ef544
commit aa31b6112f
12 changed files with 432 additions and 0 deletions

View file

@ -0,0 +1,18 @@
# Remplace le gabarit Kolla par défaut (receveur sans destination). Le relais
# local transforme ce webhook JSON en notification ntfy (voir
# ansible/roles/supervision/templates/alertmanager-ntfy.py.j2). L'URL ntfy
# elle-même reste un secret, lue depuis /root/.alertes-webhook, jamais ici.
global:
resolve_timeout: 5m
route:
receiver: ntfy
group_wait: 10s
group_interval: 5m
repeat_interval: 3h
receivers:
- name: ntfy
webhook_configs:
- url: http://127.0.0.1:9099/alertmanager
send_resolved: true
templates:
- '/etc/prometheus/*.tmpl'