Skip to content

Feature request: Support customizable notification templates #65

Description

@ig-quantum

Currently, notification messages use a fixed, hardcoded format. For example:

[P2] Database server db-server-01 is not responding.
Database server is not responding. Please investigate.
Team
Operations
Service
Database / high / infrastructure
Status
firing
Severity
critical
Priority
P2
Assignee
-
Source
alertmanager
Alert ID
12345

It would be useful to allow users to customize notification templates and include values from the original alert, such as:

Labels
Annotations
Alert name
Priority / severity
Other available alert fields

For example:

🚨 [{{ priority }}] {{ labels.alertname }}

{{ annotations.description }}

Host: {{ labels.instance }}
Service: {{ labels.service }}

Runbook: {{ annotations.runbook_url }}
Dashboard: {{ annotations.dashboard_url }}

It would also be useful if URLs included in labels or annotations could be automatically rendered as clickable links in supported notification channels.

This would give users more flexibility to adapt IncidentRelay notifications to their existing alerting conventions and workflows, while keeping the default template unchanged for users who don't need customization.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions