Linking annotations with data in a table

  • What Grafana version and what operating system are you using? v10.2

  • What are you trying to achieve?

I want to show annotations made in dahsboard Machine Details, show in another one, Machines Overview (I have achieved this with the annotations list visualization). But I want to show them linked with one of the variables selected.

In Machine Details, I have a variable called “Machines”, that can be A, B, C, etc. This variable is not multi-value and does not include “All option”, meaning, in this dashboard there is always 1 unique “machine” selected.

In the dashboard Machines Overview, I have a table that summarise some information about all the machines (one row per machine). I would like to show in this table all the annotations made for each machine in the time range applied. If there was more than one annotation made for a machine, they would have to be concatenated to show all of them in a single “annotations” column.

  • How are you trying to achieve it? → I set up an annotation query to display annotations with a specific tag.

  • What happened? → I can show them in a annotation list visualization, but I can’t show them in a table grouped by machine. The annotations appear to only be linked to the timestamp and not anything else. How can I linked them to the “machine” variable selected?

  • 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?
    Annotate visualizations | Grafana documentation

Edit: I’m guessing this is not possible (at least not trivial without using the API) today, but will be when this is implemented: Automatically add template variable as annotation tags · Issue #24674 · grafana/grafana · GitHub