Notification Template
HertzBeat supports custom notification templates. Templates use placeholder variables for rendering, and the system automatically replaces variables with actual alert data during push notifications.
Template Configuration
【Notification】->【Notice Template】->【Template Configuration】

Template Rendering
HertzBeat notification templates are based on FreeMarker syntax, supporting variable placeholders, conditional judgments, loops, formatting, and other advanced features. During template rendering, the system injects alert data objects (e.g., GroupAlert, SingleAlert) into the template, and variables are automatically replaced with actual values.
Available Variables and Data Structures
GroupAlert Structure Fields
id:Primary key of the alert groupgroupKey: Unique identifier for the groupstatus:Group status (e.g., firing, resolved)groupLabels:Group labels (Map)commonLabels:Common labels (Map)commonAnnotations:Common annotations (Map)alertFingerprints:List of alert fingerprintscreator、modifier、gmtCreate、gmtUpdate:Metadataalerts:List of alert details (List<SingleAlert>)
SingleAlert Structure Fields
id:Primary key of the detailfingerprint:Unique fingerprintlabels:Labels (Map)annotations