From 0d561b6c240953ec0a36d96a51393f7eb3c6f652 Mon Sep 17 00:00:00 2001 From: George Robinson Date: Thu, 9 Mar 2023 10:21:48 +0000 Subject: [PATCH] [v9.4.x] Docs: Updates default template link (#64495) Docs: Updates default template link (#64485) Updates default template link (cherry picked from commit 14208c4c423f1f57dfae4bdebe6a7413e7a74fe0) Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com> --- .../alerting/fundamentals/alert-rules/message-templating.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/sources/alerting/fundamentals/alert-rules/message-templating.md b/docs/sources/alerting/fundamentals/alert-rules/message-templating.md index cd563f1e4c0..f816e690a07 100644 --- a/docs/sources/alerting/fundamentals/alert-rules/message-templating.md +++ b/docs/sources/alerting/fundamentals/alert-rules/message-templating.md @@ -16,7 +16,9 @@ weight: 415 # Notification templating -Notifications sent via contact points are built using notification templates. Grafana's default templates are based on the [Go templating system](https://golang.org/pkg/text/template) where some fields are evaluated as text, while others are evaluated as HTML (which can affect escaping). The default template, defined in [default_template.go](https://github.com/grafana/alerting/blob/main/alerting/notifier/channels/default_template.go), is a useful reference for custom templates. +Notifications sent via contact points are built using notification templates. Grafana's default templates are based on the [Go templating system](https://golang.org/pkg/text/template) where some fields are evaluated as text, while others are evaluated as HTML (which can affect escaping). + +The default template [default_template.go](https://github.com/grafana/alerting/blob/main/templates/default_template.go) is a useful reference for custom templates. Since most of the contact point fields can be templated, you can create reusable custom templates and use them in multiple contact points.