Indexing a list type variable

Grafana Version: v10.1.5

Hi,

I am trying to create a timeseries panel using InfluxQL. The panel is created with multiple queries and these use different hosts(5). These hosts can be defined as static custom variables. However, I want to define these from Query as they can be fetched from the InfluxDB as the value of host tags.

I am using “SHOW TAGS…” query to get the hosts into a variable. Using this, I can define my query to select the host chosen by the user on the dashboard.
However, my requirement necessitates usage of all the five hosts in the queries and thus I will have to use the index to refer to the individual host from the listed variable.

I have a variable as all_hosts and I can refer to the individual hosts as ${all_hosts.i}, where i can be between 0 and 4 to get the five different hosts. This works fine in the queries. However, I need to refer to these hosts in the panel title as well. But, when I use the same indexing, the value always becomes All and not the actual host the index points to. Additionally, I want to print the host name in the row to group panels related to the individual hosts. There too, this indexing does not work.

In summary, these are my requirements.

  1. To be able to index a list variable in Panel title.
  2. To be able to index a list variable in Row title.

Could you please help with this?

Note: Referencing this,, I used the aforementioned indexing inside queries. However, that does not work in Panel and Row title.

Thanks