I have the (generic?) use case where I want all my alert manager notifications to go to the "default" receiver but for several specific alarms I want an additional notification sent to a 2nd receiver. Using AM version 0.26.0
This seems to work but I had to duplicate the SpecialUser since adding both match_re blocks under the same receiver results in a config error. I think this also means the emails to the SpecialUser 1 and 2 will be grouped separately which isn't what I'd want. global: smtp_smarthost: 'smtp.mydomain.com:25' smtp_from: '[email protected]' smtp_require_tls: false resolve_timeout: 5m route: group_by: ['alertname'] group_wait: 10s group_interval: 10s repeat_interval: 1h receiver: 'TeamNotifications' routes: - receiver: 'TeamNotifications' group_wait: 10s continue: true - receiver: 'SpecialUser' group_wait: 10s match_re: alertname: 'TargetDown' instance: 'host1|host2' - receiver: 'SpecialUser2' group_wait: 10s match_re: alertname: 'ProbeFailing' instance: 'https://site.mydomain.com/login' continue: true receivers: - name: 'Team-Notifications' email_configs: - to: '[email protected]' send_resolved: true - name: 'SpecialUser' email_configs: - to: '[email protected]' send_resolved: true html: '{{ template "email.html" . }}' - name: 'SpecialUser2' email_configs: - to: '[email protected]' send_resolved: true html: '{{ template "email.html" . }}' templates: - '/etc/alertmanager/templates/default.tmpl' - '/etc/alertmanager/templates/email.tmpl' -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/791a6db1-5d65-4b1f-8302-ff50f10da23fn%40googlegroups.com.

