The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/docs/sources/alerting/contact-points/message-templating/create-message-template.md

1.6 KiB

aliases keywords title weight
[/docs/grafana/latest/alerting/contact-points/message-templating/ /docs/grafana/latest/alerting/contact-points/message-templating/create-message-template/ /docs/grafana/latest/alerting/message-templating/ /docs/grafana/latest/alerting/unified-alerting/message-templating/] [grafana alerting guide contact point templating] Create message template 100

Create a message template

You can use message templates to customize notification messages for the contact point types.

To create a message tempplate:

  1. In the Grafana menu, click the Alerting (bell) icon to open the Alerting page listing existing alerts.
  2. In the Alerting page, click Contact points to open the page listing existing contact points.
  3. From Alertmanager drop-down, select an external Alertmanager to create and manage templates for the external data source. Otherwise, keep the default option of Grafana. {{< figure max-width="250px" src="/static/img/docs/alerting/unified/contact-points-select-am-8-0.gif" caption="Select Alertmanager" >}}
  4. Click Add template.
  5. In Name, add a descriptive name.
  6. In Content, add the content of the template.
  7. Click Save template button at the bottom of the page.

The define tag in the Content section assigns the template name. This tag is optional, and when omitted, the template name is derived from the Name field. When both are specified, it is a best practice to ensure that they are the same.