clay
clay

Reputation: 20370

Prometheus Alert Manager Configure Notification Title URL

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

Upvotes: 4

Views: 6452

Answers (1)

Alin S&#238;npălean
Alin S&#238;npălean

Reputation: 10064

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.

Upvotes: 12

Related Questions