Did someone get any response? I’m getting the same error when trying to send a Test email notification from my RHEL 8 (Linux) sever. Installed Prometheus and Grafana as services (instead of using Docker images).
Tried above solution too but didn’t work.
logger=ngalert.notifier.email t=2023-03-30T09:05:03.607196208-05:00 level=error msg=“Missing receiver”
logger=ngalert.notifier.email t=2023-03-30T09:05:03.607257464-05:00 level=error msg=“Missing group labels”
logger=alertmanager org=1 t=2023-03-30T09:05:12.375168702-05:00 level=error component=alertmanager orgID=1 component=dispatcher msg=“Notify for alerts failed” num_alerts=16 err=“Email Alerts/email[0]: notify retry canceled due to unrecoverable error after 1 attempts: failed to send notification to email addresses: sanitized@jll.com: dial tcp xx.x.xxx.x:587: i/o timeout”
logger=context userId=1 orgId=1 uname=admin t=2023-03-30T09:05:13.608405778-05:00 level=info msg=“Request Completed” method=POST path=/api/alertmanager/grafana/config/api/v1/receivers/test status=408 remote_addr=xx.xx.xx.xx time_ms=10034 duration=10.034264628s size=500 referer=“http://xx.xx.xx.xx:3000/alerting/notifications/receivers/Email%20Alerts/edit?alertmanager=grafana” handler=/api/alertmanager/grafana/config/api/v1/receivers/test
lo
For anyone else who treads this path like I have, I found what I was missing. Grafana UI could def make this way more clear.
All I did was click to create a Contact Point, insert an email address, click test, added a “description” and click Test. Then I’d run into the messages reported above (even though Grafana’s UI indicated it was sent).
Figured I’d play around and see. Lo and Behold, by including a Dashboard and Panel, the message went through.