diff --git a/playbooks/monitoring.yml b/playbooks/monitoring.yml index 69d0d65..bf8274b 100755 --- a/playbooks/monitoring.yml +++ b/playbooks/monitoring.yml @@ -20,6 +20,7 @@ - network-routing - service-nginx - service-nginx-openlayers + - service-cpthook - service-prometheus - service-influxdb - service-yanic diff --git a/roles/service-prometheus/files/alertmanager.yml b/roles/service-prometheus/files/alertmanager.yml index 175f319..19f9ba3 100644 --- a/roles/service-prometheus/files/alertmanager.yml +++ b/roles/service-prometheus/files/alertmanager.yml @@ -8,10 +8,13 @@ route: group_wait: 30s group_interval: 5m repeat_interval: 3h - receiver: 'email' + receiver: 'mail_irc' receivers: - - name: 'email' + - name: 'mail_irc' email_configs: - - send_resolved: true - to: "admin@lists.freifunk-mwu.de" + - send_resolved: true + to: "admin@lists.freifunk-mwu.de" + webhook_configs: + - send_resolved: true + url: http://127.0.0.1:8084/prometheus diff --git a/roles/service-prometheus/meta/main.yml b/roles/service-prometheus/meta/main.yml index 814b458..7da3fbf 100644 --- a/roles/service-prometheus/meta/main.yml +++ b/roles/service-prometheus/meta/main.yml @@ -1,3 +1,4 @@ --- dependencies: - { role: service-nginx } + - { role: service-cpthook }