How do I display anotations dependent on the value of a template variable?

Hello Grafanistas,

We have a template variable that defines a certain entity. The UI allows for the selection of an entity in the dropdown of this template var.

Now we want to show/display annotations that are specific for the active entity or IOW the value of the particular template var.

It is no problem if the creation of the annotation is not feasible as we could create the annotation via the API and identify each so created annotation with the value of the entity to which it refers,

Perhaps this is a way?

It would mean that for each entity that has annotations, we would need to create a tag.

We checked these docs, but it was like huh :thinking: :wink:

Any dice?