Is templating supported with built in annotations?

I’m experimenting with built-in Annotations support in Grafana 4.6

I’m looking to set up the query which will pull annotations for the host, which is one of templating variables for the dashboard.

This however does not work as expected This query pulls annotations for tag “host:$host” exactly rather than tags where $host is replaced by current $host templating variable value

Is this expected behavior or am I using wrong syntax ?

I suppose it is “expected behavior” because this is not implemented yet. But this is a cool feature that was easy to implement so I went ahead and created a PR for it:

The original feature request is here:

Thank you Daniel for prompt action!

1 Like