Alertmanager: Email contains wrong link when running Alertmanager as Docker container

Created on 17 Jul 2016  路  5Comments  路  Source: prometheus/alertmanager

Hi,

I'm running Prometheus/Alertmanager as Docker containers (latest) and also have a proxy server (haproxy) in front of them to get rid of the ports. I'm passing the config web-external-url to properly set the external URL which should used as base for link building. Nonetheless, the links in the notifications send by Alertmanager (e.g. email) still contain wrong links. E.g. the "Alertmanager" link shows something like "http://14c6d18965e2:9093/#/alerts?receiver=team-operations-mails" (Docker hostname + internal port).

Did i forget to configure something?

Thanks in advance,
Sven

Most helpful comment

If anybody came across same problem add web.external-url flag into alertmanager in docker-compose file.
- '-web.external-url=http://hostname here:9093/'

All 5 comments

Btw, the "source" link in the email notification is correct, but both links to the Alertmanager instance (header + footer of the email) point to the container.

It was a simple configuration issue in the docker-compose.ymlfile.

I am having the same issue, could you clarify what was the solution for you?
Thanks.

I am also facingthe same issue, could someone clarify and provide me the solution?
Thanks.

If anybody came across same problem add web.external-url flag into alertmanager in docker-compose file.
- '-web.external-url=http://hostname here:9093/'

Was this page helpful?
0 / 5 - 0 ratings