In Prometheus Alert Managers Slack Notifications, the default title includes a clickable url link that goes to: http://app:9093/#/alerts?receiver=<my_receiver_name>
How do I configure the http://app
so that it can be http://myserver
Looks to me like that link is generated by this Go template:
{{ define "__alertmanagerURL" }}{{ .ExternalURL }}/#/alerts?receiver={{ .Receiver }}{{ end }}
Which suggests that you should set --web.external-url=http://myserver
(or -web.external-url=http://myserver
on older releases) on the command line when starting alertmanager. The flag doesn't seem to be documented anywhere except the source code.
UPDATE: Newer releases of alermtmanager require two hyphens rather than one. Updating this accordingly for people finding this via search.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With