This is my current alertmanager.yml config, but all notifications sent out
get sent to all emails added in the "to" section of the email configs. What
changes can I make so that each receiver gets it's own individual email
notification instead of grouping them together? Note the "from" email is
the same for both receivers.
global:
smtp_hello: '*******.net'
route:
group_wait: 1m
group_interval: 5m
repeat_interval: 12h
group_by: ["alertname", "severity"]
# Default receiver (for all alerts that don't match any specific route)
receiver: "gmail"
routes:
- receiver: "gmail"
continue: true
- receiver: "dev-receiver"
inhibit_rules:
- source_matchers:
- severity="critical"
target_matchers:
- severity="warning"
equal: ['alertname', 'instance']
routes:
- receiver: "gmail"
continue: true
- receiver: "dev-receiver"
receivers:
# Default receiver for other alerts
- name: "gmail"
email_configs:
- to: "email1.net, email2.net"
from: '*******.net'
smarthost: 'smtp-relay.gmail.com:587'
send_resolved: true
- name: "dev-receiver"
email_configs:
- to: 'email3.net'
from: '*******.net'
smarthost: 'smtp-relay.gmail.com:587'
send_resolved: true
--
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 visit
https://groups.google.com/d/msgid/prometheus-users/3c6e8fbc-90d9-45cc-8931-4d76773995e7n%40googlegroups.com.