Unified Alert Templating Variables not Resolved

I’m trying to setup alerts in the new unified alerting.
Grafana Version: v8.3.2

I want to build the message from template variables of the labels and can not figure out what I’m doing wrong.

The configuration:

The result:
image

Am I doing something wrong here?

Thank you for any help

Additional Info, everything makes even less sense to me now.
This:


Returns this:
image

Hello @naneosrs
Did you achieved to managed this issue ? I’m encountering the same behavior which I don’t understand !

The templated annotations are not translate to their value when text is there too.

Many thanks in advanced
kind regards,

Hi I’m sorry I missed your reply.

I never managed to fixed this, I’m afraid.

1 Like

I’m using Grafana 9.3 and I still have this issue.
Has anyone solved that problem?

I have found a solution in another forum

You need use reduce function between query and condition expression and use the reduce expression as value of condition.

You need use reduce function between query and condition expression and use the reduce expression as value of condition.

I believe this is the solution, resolving the variables worked for me on newer alerts I created lately and I figured the problem was resolved in some update.

But all my current alerts contain reduce expressions, so it’s likely that it was fixed for me because of that.