# New Alert Message Templating Problems

**URL:** <https://community.grafana.com/t/new-alert-message-templating-problems/57803>\
**Category:** Alerting\
**Tags:** templating, alerting\
**Created:** [December 16, 2021, 9:33am UTC](https://community.grafana.com/t/new-alert-message-templating-problems/57803 "2021-12-16T09:33:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanielK](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@DanielK](https://community.grafana.com/u/DanielK)\
**Post date:** [December 16, 2021, 9:33am UTC](https://community.grafana.com/t/new-alert-message-templating-problems/57803/1 "2021-12-16T09:33:24Z")

</div>

- 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.

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/c/5/c5f262f3c065b653bbea9cc2a7a18fcb3b94712d.png)

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:

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/8/8/88fa3e8e0b4bbc8c4585f86f923bfc222685c10b.png)

- 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](https://grafana.com/docs/grafana/latest/alerting/unified-alerting/message-templating/) and also have some examples in use there.

---

<div class="post-metadata">

**Author:** ![obiwan](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/obiwan/32/9686_2.png) [@obiwan](https://community.grafana.com/u/obiwan)\
**Post date:** [December 22, 2021, 7:57pm UTC](https://community.grafana.com/t/new-alert-message-templating-problems/57803/2 "2021-12-22T19:57:00Z")

</div>

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:

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

```

---

<div class="post-metadata">

**Author:** ![DanielK](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@DanielK](https://community.grafana.com/u/DanielK)\
**Post date:** [January 24, 2022, 11:38am UTC](https://community.grafana.com/t/new-alert-message-templating-problems/57803/3 "2022-01-24T11:38:30Z")

</div>

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

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/2/7/27c64d7448a86ae05134cad07878e438fd66c078.png)

---

<div class="post-metadata">

**Author:** ![guilhermenascimento1](https://avatars.discourse-cdn.com/v4/letter/g/51bf81/32.png) [@guilhermenascimento1](https://community.grafana.com/u/guilhermenascimento1)\
**Post date:** [March 3, 2022, 4:05pm UTC](https://community.grafana.com/t/new-alert-message-templating-problems/57803/4 "2022-03-03T16:05:01Z")

</div>

same issues, any solution?

---

<div class="post-metadata">

**Author:** ![tmpjg](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/tmpjg/32/21908_2.png) [@tmpjg](https://community.grafana.com/u/tmpjg)\
**Post date:** [March 7, 2022, 3:06pm UTC](https://community.grafana.com/t/new-alert-message-templating-problems/57803/5 "2022-03-07T15:06:25Z")

</div>

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

Thanks!
