Prometheus, Alertmanager installation on mac

1,343 views
Skip to first unread message

karan alang

unread,
Nov 21, 2017, 7:39:53 PM11/21/17
to Prometheus Users
Hi All - 
can i have Prometheus & Alert manager installed on Mac ?
which version of the installer should i use ? (seems it is different from the one on Linux)

Conor Broderick

unread,
Nov 22, 2017, 6:21:30 AM11/22/17
to karan alang, Prometheus Users
You can indeed. On the release pages of Prometheus/Alertmanager, download the 'Darwin' release. You'll most likely want to download the darwin-amd64 release.

https://github.com/prometheus/prometheus/releases
https://github.com/prometheus/alertmanager/releases


--
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 prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/7ab13fb0-b356-4d03-857a-7456fbbd914c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

karan alang

unread,
Nov 22, 2017, 7:59:03 PM11/22/17
to Conor Broderick, Prometheus Users
   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. 
 
---
global:
  smtp_from: prome...@mail.com
  smtp_smarthost: "localhost:25"
 
receivers:
  - name: alert
    email_configs:
    - to: kal...@gmail.com
      send_resolved: true
    webhook_configs:
    - url: "http://localhost:8080/RESTfulWS-Jersey2/rest/hello/json"
 
 
route:
  group_interval: 5m
  group_wait: 30s
  receiver: alert
  repeat_interval: 2m



Any ideas on what needs to be done for this ? 
 
Reply all
Reply to author
Forward
0 new messages