Prometheus Alertmanagers Config Path_Prefix

358 views
Skip to first unread message

bgut...@avarteq.de

unread,
Aug 11, 2017, 8:07:09 AM8/11/17
to Prometheus Users
Hi there,

I am currently using the Prometheus Bosh Release. I configured Alertmanager and Prometheus in such a way that both are using an external_url. 
Now I am facing the problem that Prometheus is not able to trigger alerts to the Alertmanager because of using the IP without any prefix to the url. 

The Bosh release starts the Alertmanager with the -alertmanager.url="IP:9093" option. I've tried to add the prefix by configuring the following:

        alerting:
          alertmanagers:
          - path_prefix: "/alertmanager"
          - scheme: http

When I check the error logs of Prometheus I can see that it is trying to reach alertmanagerIP:9093/api/v1/alerts instead of alertmanagerIP:9093/alertmanager/api/v1/alerts.

Is it possible that the /path_prefix is not working with the -alertmanager.url option ?


Thanks for your help,

Regards,

Benjamin
Message has been deleted

nas...@news360.com

unread,
Feb 27, 2018, 6:34:39 PM2/27/18
to Prometheus Users
I had the same problem. Turns out (for me) that the "/" was in the wrong position.
I changed 
        alerting:
          alertmanagers
:
         
- path_prefix: "/alertmanager"
         
- scheme: http

to
        alerting:
          alertmanagers
:
         
- path_prefix: "alertmanager/"
         
- scheme: http


and now it works. Hope it works for you (if you still needs it, since it's been a long time)
Reply all
Reply to author
Forward
0 new messages