Configuring Alert Rule Summary and Contact Point Template for Disk Space Alerts

Hi everyone,

I’m new to Grafana and could use some guidance with setting up alert rules and contact point templates.

I’ve created an alert to notify me when any of my instances are running low on disk space. While the alert itself works, I’m struggling to enhance its readability by adding useful information in the alert’s summary. Specifically, I’d like to include details like the instance name, disk usage percentage, and other relevant context.

I’ve tried following the official documentation and various resources, but neither the alert rule’s summary nor the contact point’s template seems to be working as expected. The alert messages I receive are either incomplete or not formatted the way I need.


Would anyone be able to help me figure out what I’m doing wrong? I’d appreciate any examples, tips, or troubleshooting steps that could point me in the right direction.

{{ template "custom.alerts" }} executes the referenced template, but it doesn’t pass any data by default.

To ensure the template has access to the necessary notification data (dot .), you should explicitly pass it when invoking the template.

{{ template "custom.alerts" . }}

For more details, refer to the Execute Templates and Notification Data Reference sections in our documentation.

Hope it helps!