Using template variable to populate annotation tag

  • What Grafana version and what operating system are you using?
    8.1.2, Official Docker

  • What are you trying to achieve?
    I am trying to use the current value of a template variable to populate the tag field of annotations.

Ideally, I would love to use it in key:value format, such as:


  • How are you trying to achieve it?
    I am using: $my_template_variable_name when defining tag in new annotations popup.

  • What happened?
    It is treated as a string “$my_template_variable_name” instead of entering the variable value (e.g. 1234)

  • What did you expect to happen?
    The tag is created using the value (e.g. 1234)

  • Can you copy/paste the configuration(s) that you are having problems with?

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

  • Did you follow any online instructions? If so, what is the URL?

Hi @tcl

I believe that this is an ongoing feature request. Here is an issue with a lot of recent chatter:

This topic was automatically closed after 365 days. New replies are no longer allowed.