|45 Drives Knowledge Base
||KB045245 – Configuring Alert Manager to send Emails
This article will show proper syntax in order to allow emails to be sent from alert manager
A running Ceph Cluster with the ceph dashboard configured with ceph-ansible
Access to the cluster ansible-admin node
An email address, server name and port you wish to send the alerts to
# vim /etc/alertmanager/alertmanager.yml
- name: 'ceph-dashboard'
- url: 'http://osd1:8234/api/prometheus_receiver'
- url: 'http://osd2:8234/api/prometheus_receiver'
- url: 'http://osd3:8234/api/prometheus_receiver'
- to: 'email@example.com'
systemctl restart alertmanager
Check the status of alert manager to ensure the service is running:
systemctl status alertmanager
If the alert manager service is failing you can check the logs for alert manager:
docker logs alertmanager
Pay close attention to syntax in the alertmanager.yml file. It is very common for the service to fail due to a syntax error.