2022-12-19 23:01:18 +08:00
---
2024-02-27 18:56:11 +08:00
aliases:
2024-03-14 23:58:18 +08:00
- ../manage-notifications/template-notifications/ # /docs/grafana/< GRAFANA_VERSION > /alerting/manage-notifications/template-notifications/
2024-02-27 18:56:11 +08:00
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
2024-05-21 20:43:21 +08:00
refs:
use-notification-templates:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /alerting/configure-notifications/template-notifications/use-notification-templates/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/alerting-and-irm/alerting/configure-notifications/template-notifications/use-notification-templates/
reference:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /alerting/configure-notifications/template-notifications/reference/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/alerting-and-irm/alerting/configure-notifications/template-notifications/reference/
using-go-templating-language:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /alerting/configure-notifications/template-notifications/using-go-templating-language/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/alerting-and-irm/alerting/configure-notifications/template-notifications/using-go-templating-language/
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
2024-05-07 16:26:04 +08:00
- Customize content: Personalize the subject of an email or the title of a message. Modify text within notifications, like selecting or omitting certain labels, annotations, and links. Format text with bold and italic styles, and add or remove line breaks.
2022-12-19 23:01:18 +08:00
2024-05-07 16:26:04 +08:00
However, there are limitations. You cannot:
2022-12-19 23:01:18 +08:00
2024-05-07 16:26:04 +08:00
- Modify Visual Appearance: Add HTML and CSS to email notifications for visual changes. Alter the design of notifications in messaging services like Slack and Microsoft Teams, such as adding custom blocks or adaptive cards.
- Manage Media and Data: Adjust the number and size of images or their placement in notifications. Customize webhook data structure or format, including JSON fields or sending data in XML. Modify HTTP headers in webhooks beyond those in the contact point configuration.
## Learn more
2022-12-19 23:01:18 +08:00
2024-05-21 20:43:21 +08:00
[Using Go's templating language ](ref: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
2024-05-21 20:43:21 +08:00
[Use notification templates ](ref: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
2024-05-21 20:43:21 +08:00
[Reference ](ref:reference )
2022-12-19 23:01:18 +08:00
Data that is available when writing templates.