Thanks, i was able to setup Prometheus & Alertmanager ..
However, on enabling alerts - i see the following message in the Prometheus log file (On Mac) ..
level=info ts=2017-11-23T00:36:27.811415665Z caller=main.go:371 msg="Server is ready to receive requests."
level=error ts=2017-11-23T00:42:32.611047966Z caller=notifier.go:444 component=notifier alertmanager=http://localhost:9093/api/v1/alerts count=1 msg="Error sending alert" err="Post http://localhost:9093/api/v1/alerts:
dial tcp 127.0.0.1:9093: getsockopt: connection refused"
For some reason, the Prometheus is not able to connect to the localhost:9093 (alertmanager url), to send the alerts.
This is happening primarily on the local Mac
On linux, i was able to setup the alerts by specifying the relayhost in the alertmanager.yml file
Pls see the alertmanger.yml file.
Any ideas on what needs to be done for this ?