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
Is anyone getting a timeout error when sending Alerts or Test Notification from Grafana? I have Prometheus and Grafana service installed in our RHEL 8 server (linux red hat) and grafana using YUM repository installation. Not using any docker images. vi This is the file path: /etc/grafana/grafana.ini