diff options
author | Georg | 2021-08-06 17:42:45 +0200 |
---|---|---|
committer | Georg | 2021-08-06 17:42:45 +0200 |
commit | 4bd9e36ff45b2001b048a23a218e26605deac7d0 (patch) | |
tree | 4b592921aa4cbf98d75059f9223712b6ddcc1799 /Prometheus_Alertmanager | |
parent | 1791f4374b72e5bd45dfbe6d2e543d0537f711e0 (diff) | |
download | monitoring-4bd9e36ff45b2001b048a23a218e26605deac7d0.tar.gz monitoring-4bd9e36ff45b2001b048a23a218e26605deac7d0.tar.bz2 monitoring-4bd9e36ff45b2001b048a23a218e26605deac7d0.zip |
Mass Commit 06/08/2021
Signed-off-by: Georg <georg@lysergic.dev>
Diffstat (limited to 'Prometheus_Alertmanager')
-rw-r--r-- | Prometheus_Alertmanager/alertmanager.service | 17 | ||||
-rw-r--r-- | Prometheus_Alertmanager/alertmanager.yml | 57 |
2 files changed, 74 insertions, 0 deletions
diff --git a/Prometheus_Alertmanager/alertmanager.service b/Prometheus_Alertmanager/alertmanager.service new file mode 100644 index 0000000..b812e4c --- /dev/null +++ b/Prometheus_Alertmanager/alertmanager.service @@ -0,0 +1,17 @@ +[Unit] +After=network.target +Description=Prometheus Alertmanager +Wants=network-online.target +After=network-online.target + +[Service] +Type=simple +User=alertmanager +Group=prometheus +WorkingDirectory=/var/lib/alertmanager +Restart=always +ExecStart=/opt/alertmanager/alertmanager --config.file=/etc/prometheus/alertmanager.yml --web.external-url=https://prometheus.lysergic.dev:4433/alertmanager --web.route-prefix=/ --cluster.listen-address= +ExecReload=/usr/bin/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target diff --git a/Prometheus_Alertmanager/alertmanager.yml b/Prometheus_Alertmanager/alertmanager.yml new file mode 100644 index 0000000..7fe3669 --- /dev/null +++ b/Prometheus_Alertmanager/alertmanager.yml @@ -0,0 +1,57 @@ +global: + resolve_timeout: 5m + +route: + group_by: ['alertname'] + group_wait: 10s + group_interval: 10s + repeat_interval: 1h + receiver: 'smtp-local' + routes: + - receiver: 'irc-tripsit' + match: + project: TRIPSIT + - receiver: 'mayday-tripsit' + match: + project: tripsit-critical + - receiver: 'lysergic' + continue: true + match: + project: LYSERGIC +receivers: +- name: 'smtp-local' + email_configs: + - to: '$MAIL_SYSTEM' + from: '$MAIL_ALERTMANAGER' + require_tls: false + smarthost: '$SMTPHOST' + send_resolved: yes +- name: 'irc-tripsit' + webhook_configs: + - url: 'http://127.0.0.1:2420/_systems' + send_resolved: yes +- name: 'mayday-tripsit' + webhook_configs: + - url: 'http://127.0.0.1:2420/tripsit-dev' + email_configs: + - to: '$MAIL_SYSTEM' + from: '$MAIL_ALERTMANAGER' + require_tls: false + smarthost: '127.0.0.1:25' + send_resolved: yes +- name: 'irc-libertacasa' + webhook_configs: + - url: 'http://127.0.0.1:2410/universe' + send_resolved: yes +- name: 'lysergic' + webhook_configs: + - url: 'http://127.0.0.1:2410/universe' + send_resolved: yes + - url: http://127.0.0.2:8081/prometheus/webhook + send_resolved: yes + email_configs: + - to: '$MAIL_SYSTEM' + from: '$MAIL_ALERTMANAGER' + require_tls: false + smarthost: '127.0.0.1:25' + send_resolved: yes |