Skip to content

Commit

Permalink
Clarify ExternalURL mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
sebhoss committed Sep 18, 2023
1 parent f18fb7c commit bdde6c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ Template are written using Golang's [html/template](https://pkg.go.dev/html/temp

#### ExternalURL

The `ExternalURL` as sent by an Alertmanager contains the backlink to the Alertmanager that sent the notification. In some cases you might want/need to map these values to something that is externally available. Use the `templating.external-url-mapping` configuration key for these cases. Each key is the full original value as sent by an Alertmanager and each value is what you want to use in your templates.
The `ExternalURL` as sent by an Alertmanager contains the backlink to the Alertmanager that sent the notification. In general, you should set the correct URL your Alertmanager can be reached with using the `--web.external-url` Alertmanager CLI flag. In case you cannot change the configuration of your Alertmanager, use the `templating.external-url-mapping` configuration of this alertmanager-receiver. Each key is the full original value as sent by an Alertmanager and each value is what you want to use in your templates.

```yaml
templating:
Expand Down

0 comments on commit bdde6c4

Please sign in to comment.