New Alert Message Templating Problems

  • What Grafana version and what operating system are you using?

8.3.2

  • What are you trying to achieve?
    Modification of alert messages trough templating.
    The Alert gets send to my OpsGenie Account.

  • How are you trying to achieve it?

Created an Alert Rule and then in the “Contact Points” Tab some templates to customize
the message.

The alert is firing correctly and is also sent to the OpsGenie but it never uses the templates.

  • What happened?
    It seems to have absolutey no effect on the notification that is getting sent out it is always
    the default template e.g:

  • What did you expect to happen?

The templates i’ve created to have any actual effect.

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    No
  • Did you follow any online instructions? If so, what is the URL?

tried to follow: Notification templating | Grafana documentation and also have some examples in use there.

Can you show the Contact Point that is using this template? I assume you are calling the templates that you want in the Contact Point Title and Contact Point Text Body fields. For example:

Contact Point:

Name: <name of contact point>
Title: {{template "name-of-title-template" .}}
Text Body: {{template "name-of-body-template" .}}

Thank you for the answer.
Im using Opsgenie as Contact Point, i cannot define anything there:

same issues, any solution?

I found this issue on github: Some custom email templates stopped working after migration to Grafana Alerting #42946 .
I think that this is another bug of ngalert. If anyone found a workaround please let me know.

Thanks!