Grafana Failed to send alert notifications

Hello,
I have been trying to “Send Test” to try out the Grafana Alerting however I did not manage to make it work…

I followed the official documentation on Grafana’s website and this tutorial : https://www.techiescorner.in/grafana-mail-alert-configuration/#comment-33550 .

This is my configuration on Grafana:

Then in the configuration files I have the following for the configuration of SMTP other than that I did not change anything in the file:


After this, I restarted Grafana as asked by the tutorials using the command line.

However, when I try to “Send Test” I get the following error on Grafana: “Failed to send alert notifications”

So I looked in the log and go this:

t=2020-08-07T17:43:45+0100 lvl=info msg="Sending alert notification to" logger=alerting.notifier.email addresses=[lolasmith2406@gmail.com] singleEmail=true
t=2020-08-07T17:43:46+0100 lvl=eror msg="Failed to send alert notification email" logger=alerting.notifier.email error="Failed to send notification to email addresses: lolasmith2406@gmail.com: dial tcp: lookup stmp.gmail.com on 127.0.0.1:53: no such host"
t=2020-08-07T17:43:46+0100 lvl=eror msg="failed to send notification" logger=alerting.notifier uid= error="Failed to send notification to email addresses: lolasmith2406@gmail.com: dial tcp: lookup stmp.gmail.com on 127.0.0.1:53: no such host"
t=2020-08-07T17:43:46+0100 lvl=eror msg="failed to send notification" logger=alerting.notifier uid= error="Failed to send notification to email addresses: lolasmith2406@gmail.com: dial tcp: lookup stmp.gmail.com on 127.0.0.1:53: no such host"
t=2020-08-07T17:43:46+0100 lvl=eror msg="Failed to send alert notifications" logger=context userId=1 orgId=1 uname=admin error="Failed to send notification to email addresses: lolasmith2406@gmail.com: dial tcp: lookup stmp.gmail.com on 127.0.0.1:53: no such host" remote_addr=[::1]
t=2020-08-07T17:43:46+0100 lvl=eror msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=POST path=/api/alert-notifications/test status=500 remote_addr=[::1] time_ms=437 size=48 referer=http://localhost:2000/alerting/notification/2/edit

I do not understand what my error is and what I should do to make it work. Can anyone please help me or if I need to add any additional information please let me know. Thank you

The Gmail hostname is smtp.gmail.com and not stmp

Hi @lolasm

An easy to follow article Grafana Mail Alert Configuration. | techiescorner.in