New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email contains wrong link when running Alertmanager as Docker container #430

Closed
svenmueller opened this Issue Jul 17, 2016 · 5 comments

Comments

Projects
None yet
4 participants
@svenmueller

svenmueller commented Jul 17, 2016

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

@svenmueller svenmueller changed the title from Email contains wrong link when running Alertmanager as docker container to Email contains wrong link when running Alertmanager as Docker container Jul 17, 2016

@svenmueller

This comment has been minimized.

svenmueller commented Jul 18, 2016

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.

@svenmueller

This comment has been minimized.

svenmueller commented Jul 18, 2016

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

@copernico

This comment has been minimized.

copernico commented Apr 25, 2017

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

@anandsh19

This comment has been minimized.

anandsh19 commented May 29, 2017

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

@ntwobike

This comment has been minimized.

ntwobike commented Sep 12, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment