Skip to content

Commit

Permalink
Update notification_examples.md (#3707)
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas Burigo <[email protected]>
  • Loading branch information
burigolucas authored Feb 13, 2024
1 parent 44d5f70 commit 2fd1b52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/notification_examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Receiver
## Defining reusable templates

Going back to our first example, we can also provide a file containing named templates which are then loaded by Alertmanager in order to avoid complex templates that span many lines.
Create a file under `/alertmanager/template/myorg.tmpl` and create a template in it named "slack.myorg.txt":
Create a file under `/alertmanager/template/myorg.tmpl` and create a template in it named "slack.myorg.text":

```
{{ define "slack.myorg.text" }}https://internal.myorg.net/wiki/alerts/{{ .GroupLabels.app }}/{{ .GroupLabels.alertname }}{{ end}}
Expand All @@ -102,4 +102,4 @@ templates:
- '/etc/alertmanager/templates/myorg.tmpl'
```

This example is explained in further detail in this [blogpost](https://prometheus.io/blog/2016/03/03/custom-alertmanager-templates/).
This example is explained in further detail in this [blogpost](https://prometheus.io/blog/2016/03/03/custom-alertmanager-templates/).

0 comments on commit 2fd1b52

Please sign in to comment.