Hi guys,

i want to configure my alertmanager to send alerts on emails.
i have a rule set for instance if it goes down, an alert is activated.

Although i'm able to check alerts on Web UI
[image: 1.JPG]

But i'm not able to receive any emails.

*Here is my alertmanager.yml file:*

global:

route:
  group_by: [Alertname]
  receiver: email-me

receivers:
  - name: email-me
    email_configs:
    - to: '[email protected]'
      from: '[email protected]'
      smarthost: 'smtp.gmail.com:587'
      auth_username: "[email protected]"
      auth_password: "xxxxxx"


And I've also checked alertmanager logs and it gives me this:

Jun 30 17:17:17 localhost.localdomain alertmanager[41098]: level=error 
ts=2020-06-30T21:17:17.150686531Z caller=notify.go:332 
component==dispatcher msg="Error on notify" err="Post 
http://127.0.0.1:5001/: dial tcp 127.0.0.1:5001: connect: connection 
refused"
Jun 30 17:17:17 localhost.localdomain alertmanager[41098]: level=error 
ts=2020-06-30T21:17:17.150754532Z 
caller=dispatch.go:177 component=dispatcher msg="Notify for alerts failed" 
num_alerts=1 err="Post http://127.0.0.1:5001/: dial tcp 127.0.0.1:5001: 
connect: connection refused"

I've searched a lot online, couldn't find anything!
Can someone please help me with this, Thanks in advance!



-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/0084a854-448b-4bd1-a925-eecdcc8bbfa3o%40googlegroups.com.

Reply via email to