Hi i have been using docker pmm2 version . recently i upgraded from version 2.12 to 2.13 and now our alerting via email/or microsoft teams does not work and it used to work before. I have couple of questions if you all can help me.
I just tested bringing one of the monitored mysql instances down. i see the alert getting generated in the alertmanager UI. however there is no email or msteam alert. Below is my configuration which use to work in earlier version before 2.13
[root@479c571a4535 alertmanager]# pwd
/srv/alertmanager
[root@479c571a4535 alertmanager]# cat alertmanager.base.yml
---
# You can edit this file; changes will be preserved.
global:
smtp_smarthost: '<outlookaddreress'
smtp_from: 'alertmanager@test.com'
route:
receiver: 'prometheus-msteams'
group_by: ['alertname','cluster']
group_wait: 15s
group_interval: 10m
repeat_interval: 1h
routes:
# - match_re:
# alertname: ^(Instance Down|MysqlDown)$
# receiver: 'prometheus-msteams'
- match_re:
alertname: ^(Instance Down|MysqlDown)$
receiver: 'opensourcedb-email'
receivers:
- name: opensourcedb-email
email_configs:
- to: 'emailaddress'
send_resolved: true
- name: 'pagerduty'
pagerduty_configs:
- service_key: ad18da17b088d1d8
- name: 'prometheus-msteams'
webhook_configs: # https://prometheus.io/docs/alerting/configuration/#webhook_config
- send_resolved: true
url: 'http://<ipaddresss/alertmanager' # the prometheus-msteams proxy