2022-12-19 23:01:18 +08:00
---
2024-02-27 18:56:11 +08:00
aliases:
- ../manage-notifications/template-notifications/ # /docs/grafana/latest/alerting/manage-notifications/template-notifications/
canonical: https://grafana.com/docs/grafana/latest/alerting/configure-notifications/template-notifications/
2023-12-12 19:02:58 +08:00
description: Customize your notifications using notification templates
2022-12-19 23:01:18 +08:00
keywords:
- grafana
- alerting
- notifications
- templates
Explicitly set all front matter labels in the source files (#71548)
* Set every page to have defaults of 'Enterprise' and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration pages to have of 'Cloud', 'Enterprise', and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/enterprise-licensing pages to have 'Enterprise' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/organization-management pages to have 'Enterprise' and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/provisioning pages to have 'Enterprise' and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/recorded-queries pages to have labels cloud,enterprise
* Set administration/roles-and-permissions/access-control pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/stats-and-license pages to have labels cloud,enterprise
* Set alerting pages to have labels cloud,enterprise,oss
* Set breaking-changes pages to have labels cloud,enterprise,oss
* Set dashboards pages to have labels cloud,enterprise,oss
* Set datasources pages to have labels cloud,enterprise,oss
* Set explore pages to have labels cloud,enterprise,oss
* Set fundamentals pages to have labels cloud,enterprise,oss
* Set introduction/grafana-cloud pages to have labels cloud
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Fix introduction pages products
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set panels-visualizations pages to have labels cloud,enterprise,oss
* Set release-notes pages to have labels cloud,enterprise,oss
* Set search pages to have labels cloud,enterprise,oss
* Set setup-grafana/configure-security/audit-grafana pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set setup-grafana/configure-security/configure-authentication pages to have labels cloud,enterprise,oss
* Set setup-grafana/configure-security/configure-authentication/enhanced-ldap pages to have labels cloud,enterprise
* Set setup-grafana/configure-security/configure-authentication/saml pages to have labels cloud,enterprise
* Set setup-grafana/configure-security/configure-database-encryption/encrypt-secrets-using-hashicorp-key-vault pages to have labels cloud,enterprise
* Set setup-grafana/configure-security/configure-request-security pages to have labels cloud,enterprise,oss
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set setup-grafana/configure-security/configure-team-sync pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set setup-grafana/configure-security/export-logs pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set troubleshooting pages to have labels cloud,enterprise,oss
* Set whatsnew pages to have labels cloud,enterprise,oss
* Apply updated labels from review
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
---------
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-07-18 16:10:12 +08:00
labels:
products:
- cloud
- enterprise
- oss
2024-02-28 16:10:19 +08:00
title: Configure notification messages
weight: 430
2022-12-19 23:01:18 +08:00
---
2024-02-28 16:10:19 +08:00
# Configure notification messages
2022-12-19 23:01:18 +08:00
2024-02-28 16:10:19 +08:00
Customize the content of your notifications with notifications templates.
2022-12-19 23:01:18 +08:00
2023-01-19 01:26:34 +08:00
You can use notification templates to change the title, message, and format of the message in your notifications.
2022-12-19 23:01:18 +08:00
2023-01-19 01:26:34 +08:00
Notification templates are not tied to specific contact point integrations, such as email or Slack. However, you can choose to create separate notification templates for different contact point integrations.
2022-12-19 23:01:18 +08:00
2023-01-19 01:26:34 +08:00
You can use notification templates to:
2022-12-19 23:01:18 +08:00
2023-10-24 19:41:08 +08:00
- Customize the subject of an email or the title of a message.
- Add, change or remove text in notifications. For example, to select or omit certain labels, annotations and links.
- Format text in bold and italic, and add or remove line breaks.
2022-12-19 23:01:18 +08:00
2023-01-19 01:26:34 +08:00
You cannot use notification templates to:
2022-12-19 23:01:18 +08:00
2023-10-24 19:41:08 +08:00
- Add HTML and CSS to email notifications to change their visual appearance.
- Change the design of notifications in instant messaging services such as Slack and Microsoft Teams. For example, to add or remove custom blocks with Slack Block Kit or adaptive cards with Microsoft Teams.
- Choose the number and size of images, or where in the notification images are shown.
- Customize the data in webhooks, including the fields or structure of the JSON data or send the data in other formats such as XML.
- Add or remove HTTP headers in webhooks other than those in the contact point configuration.
2022-12-19 23:01:18 +08:00
2023-07-10 18:51:29 +08:00
[Using Go's templating language][using-go-templating-language]
2022-12-19 23:01:18 +08:00
2023-01-19 01:26:34 +08:00
Learn how to write the content of your notification templates in Go’ s templating language.
2022-12-19 23:01:18 +08:00
2023-01-19 01:26:34 +08:00
Create reusable notification templates for your contact points.
2022-12-19 23:01:18 +08:00
2023-10-12 20:37:26 +08:00
[Use notification templates][use-notification-templates]
2022-12-19 23:01:18 +08:00
2023-01-19 01:26:34 +08:00
Use notification templates to send notifications to your contact points.
2022-12-19 23:01:18 +08:00
2023-07-10 18:51:29 +08:00
[Reference][reference]
2022-12-19 23:01:18 +08:00
Data that is available when writing templates.
2023-07-10 18:51:29 +08:00
{{% docs/reference %}}
2024-02-27 18:56:11 +08:00
[reference]: "/docs/grafana/ -> /docs/grafana/< GRAFANA_VERSION > /alerting/configure-notifications/template-notifications/reference"
[reference]: "/docs/grafana-cloud/ -> /docs/grafana-cloud/alerting-and-irm/alerting/configure-notifications/template-notifications/reference"
2023-07-10 18:51:29 +08:00
2024-02-27 18:56:11 +08:00
[use-notification-templates]: "/docs/grafana/ -> /docs/grafana/< GRAFANA_VERSION > /alerting/configure-notifications/template-notifications/use-notification-templates"
[use-notification-templates]: "/docs/grafana-cloud/ -> /docs/grafana-cloud/alerting-and-irm/alerting/configure-notifications/template-notifications/use-notification-templates"
2023-07-10 18:51:29 +08:00
2024-02-27 18:56:11 +08:00
[using-go-templating-language]: "/docs/grafana/ -> /docs/grafana/< GRAFANA_VERSION > /alerting/configure-notifications/template-notifications/using-go-templating-language"
[using-go-templating-language]: "/docs/grafana-cloud/ -> /docs/grafana-cloud/alerting-and-irm/alerting/configure-notifications/template-notifications/using-go-templating-language"
2023-07-10 18:51:29 +08:00
{{% /docs/reference %}}