How can I create a receiver configuration with multiple email addresses in the "to" field?
Alerting rules in Prometheus servers send alerts to an Alertmanager. The Alertmanager then manages those alerts, including silencing, inhibition, aggregation and sending out notifications via methods such as email, on-call notification systems, and chat platforms.
The Alertmanager handles alerts sent by client applications such as the Prometheus server. It takes care of deduplicating, grouping, and routing them to the correct receiver integration such as email, PagerDuty, or OpsGenie. It also takes care of silencing and inhibition of alerts.
Configure Alertmanageryml file by adding the location of our Alertmanager. Under alerting field we add our Alertmanager target and we need to restart the Prometheus service for the updated configurations to take effect and we can see the Alertmanager in our Prometheus dashboard under the status tab.
You can put comma separated email addresses in the to
field.
For prometheus 1.8 I am using two "to" configurations in the same receiver.
receivers:
- name: 'bla1-and-bla2-mails'
email_configs:
- to: '[email protected]'
from: '[email protected]'
require_tls: false
send_resolved: true
- to: '[email protected]'
from: '[email protected]'
require_tls: false
send_resolved: true
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With