How to quickly test alert templates?

Noob question:
I’m learning how to use the templating syntax, currently modifying a template in the description of an alert rule, then waiting a minute for it to re-evaluate and see the output. Is there a better way to see the output of my template immediately? Since this Go template language is new to me, I have to iterate several times to get it right.

Hi! I’d recommend using the Template testing/preview feature in Grafana 10. You can find this feature under the Notification Templates tab under Contact points.

1 Like