How to change the link of the source field , when alertmanager sends alert

239 views
Skip to first unread message

karinh...@gmail.com

unread,
May 15, 2019, 1:12:00 AM5/15/19
to Prometheus Users
Hello,

I have run prometheus and alertmanager in docker and have three different edition hwich I deploy with the same docker image.
How can I change the link of the source field, if the alertmanager sends an alert?

In the email_text.tmpl I can found this:
{{ end }} Source: {{ .GeneratorURL }}

Is it possible to change the link of the hostname but to keep the regular expression after the Hostname and Port?

Thanks in advance.

Adrien

unread,
Oct 29, 2021, 3:56:49 AM10/29/21
to Prometheus Users
Hi,
It seems the only way is to use "--web.external-url=" argument.

I was looking for finding something in prometheus config so I can override it but I don't find.
Reply all
Reply to author
Forward
0 new messages