- Title: The subject line or heading of the notification.
- Description: The body text of the notification.
notification_template field definition, see the
monitor data model.
Set a notification template
Add anotification_template block when creating or updating a monitor.
- Web UI
- Chronoctl
- Terraform
- API
When you create or
edit a monitor, use the
Notification Template section to set the title and description of the
notifications this monitor generates. Enter Go template strings that combine
literal text with
{{...}} placeholders, which expand with alert context at
notification time.- In the Title field, enter a template for the notification title.
- In the Description field, enter a template for the notification body.
Error rate alert example
The following template uses severity and label variables to produce a notification title and description.payments service in production, Chronosphere
Observability Platform renders the notification as:
Template variables
Reference variables with dot notation, for example,{{.Severity}}.
Alert object fields
Each item in.Alerts, .Alerts.Firing, and .Alerts.Resolved exposes the
following fields:

