How is Prometheus Alert Manager hooked up with the Monitor?

219 views
Skip to first unread message

crysta...@gmail.com

unread,
Nov 17, 2017, 10:29:36 AM11/17/17
to Prometheus Users
I have prometheus monitor running on a server with IP 11.22.33.44
I can see the alerts I'm expecting at http://11.22.33.44:9090/alerts

I have prometheus alert manager running on another server with IP 55.66.77.88
However, there is no alert shown at http://55.66.77.88:9093/#/alerts

My alertmanager.yml is almost a carbon copy of the example simple.yml
There is nothing in the alertmanager.yml that tells the alert manager on 55.66.77.88 to watch for alerts on the server 11.22.33.44

How do to hook up the monitor at 11.22.33.44 with the alert manager on 55.66.77.88 anyway?




Conor Broderick

unread,
Nov 17, 2017, 10:46:20 AM11/17/17
to crysta...@gmail.com, Prometheus Users
If you're using a version of Prometheus >=1.4 you can add the following to your Prometheus configuration file to hook up Prometheus and Alertmanager.
alerting:
  alertmanagers:
  - scheme: https
    static_configs:
    - targets:
      - "55.66.77.88:9093"
Is the alert firing? I don't think you'll see the alert in the Alertmanager if the alert isn't firing in Prometheus.
Hope that helps,
Conor

--
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/ab7438e3-b0b3-425e-bd17-aebd6c0ee8c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

crysta...@gmail.com

unread,
Nov 17, 2017, 11:06:50 AM11/17/17
to Prometheus Users
Thanks, Conor, that's what I'm looking for.
I added the block to my prometheus.yml.

Yes, the alerts are firing at prometheus server at 11.22.33.44

But I still see "No alerts found" on 55.66.77.88:9093/#/alerts
Do I have to setup something for enable network communication between the two servers?


On Friday, November 17, 2017 at 10:46:20 AM UTC-5, Conor Broderick wrote:
If you're using a version of Prometheus >=1.4 you can add the following to your Prometheus configuration file to hook up Prometheus and Alertmanager.
alerting:
  alertmanagers:
  - scheme: https
    static_configs:
    - targets:
      - "55.66.77.88:9093"
Is the alert firing? I don't think you'll see the alert in the Alertmanager if the alert isn't firing in Prometheus.
Hope that helps,
Conor
On 17 November 2017 at 15:29, crys...@ca.ibm.com <crysta...@gmail.com> wrote:
I have prometheus monitor running on a server with IP 11.22.33.44
I can see the alerts I'm expecting at http://11.22.33.44:9090/alerts

I have prometheus alert manager running on another server with IP 55.66.77.88
However, there is no alert shown at http://55.66.77.88:9093/#/alerts

My alertmanager.yml is almost a carbon copy of the example simple.yml
There is nothing in the alertmanager.yml that tells the alert manager on 55.66.77.88 to watch for alerts on the server 11.22.33.44

How do to hook up the monitor at 11.22.33.44 with the alert manager on 55.66.77.88 anyway?




--
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-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.



--

Conor Broderick

unread,
Nov 17, 2017, 1:38:36 PM11/17/17
to crysta...@gmail.com, Prometheus Users
Try checking prometheus logs&metrics for errors in that case. Hopefully something there will point you in the right direction.
Reply all
Reply to author
Forward
0 new messages