diff --git a/docs/notification_examples.md b/docs/notification_examples.md index beb0a27c..85ac6e99 100644 --- a/docs/notification_examples.md +++ b/docs/notification_examples.md @@ -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}} @@ -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/). \ No newline at end of file +This example is explained in further detail in this [blogpost](https://prometheus.io/blog/2016/03/03/custom-alertmanager-templates/).