From 2fd1b52c988cec3814413ee493e9c1bdb2a1cb40 Mon Sep 17 00:00:00 2001 From: Lucas Burigo Date: Tue, 13 Feb 2024 13:40:46 +0100 Subject: [PATCH] Update notification_examples.md (#3707) Signed-off-by: Lucas Burigo --- docs/notification_examples.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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/).