Cannot see alerts in alertmanager

1,048 views
Skip to first unread message

swarun...@gmail.com

unread,
Jun 21, 2018, 8:16:05 AM6/21/18
to Prometheus Users
I included a rule.yml file in Prometheus. Yml file and also defined rule.yml file.
But after running ./Prometheus I can't see anything on alertmanager.how do you connect Prometheus with alert manager.
Plz explain in simple words as I am a new user.thanks

Simon Pasquier

unread,
Jun 21, 2018, 8:47:01 AM6/21/18
to swarun...@gmail.com, Prometheus Users
You can look at the example configuration [1] in the Prometheus repository.
Basically add this snippet to your prometheus.yml file replacing "alertmanager:9093" by the actual address of your AlertManager instance.

alerting:
  alertmanagers:
  - static_configs:
    - targets:
      - alertmanager:9093



--
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/019a85f0-65f1-4641-aaa0-74cc893cdc0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

swarun...@gmail.com

unread,
Jun 21, 2018, 9:05:37 AM6/21/18
to Prometheus Users
my AlertManager is running at https://9.30.188.194:8443/alertmanager/#/alerts
what do I substitute now?


On Thursday, June 21, 2018 at 6:17:01 PM UTC+5:30, Simon Pasquier wrote:
You can look at the example configuration [1] in the Prometheus repository.
Basically add this snippet to your prometheus.yml file replacing "alertmanager:9093" by the actual address of your AlertManager instance.

alerting:
  alertmanagers:
  - static_configs:
    - targets:
      - alertmanager:9093

On Thu, Jun 21, 2018 at 2:16 PM, <swarun...@gmail.com> wrote:
I included a rule.yml file in Prometheus. Yml file and also defined rule.yml file.
But after running ./Prometheus I can't see anything on alertmanager.how do you connect Prometheus with alert manager.
Plz explain in simple words as I am a new user.thanks

--
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.

Simon Pasquier

unread,
Jun 22, 2018, 3:45:38 AM6/22/18
to unmesh swar, Prometheus Users
On Thu, Jun 21, 2018 at 3:05 PM, <swarun...@gmail.com> wrote:
my AlertManager is running at https://9.30.188.194:8443/alertmanager/#/alerts
what do I substitute now?

This should look something like this:

alerting:
  alertmanagers:
  - scheme: https
    path_prefix: /alertmanager
    tls_config:
      insecure_skip_verify: true
    static_configs:
    - targets:
      - 9.30.188.194:8443

 Check the tls_config documentation [1] if you want to enable certificate verification.


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/319d5105-13fc-4232-a819-c75d24e75376%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages