How to display multi-value variable in graph title correctly?

Hi, I have two variables configured

A: label_values(host{environment="$env"},instance)
B: label_values(host{instance=~"$A"},host)

Both A and B are configured as Multi-value and A is used to query metrics and create repeated panels. Variable A can also be displayed in repeated graph title correctly but B can only be displayed as first value in graph title.

I cannot use B directly in the graph metrics query because only instance (IP address in my case) is available in the datasource.

So I’m wondering if there is a way to make B also being displayed correctly? Thanks!

hey jading, I have a similar problem with you, were you able to find a solution to your problem?

Hi, no I haven’t figured out a solution.

I got around this limitation by creating individual panels for each value of variableA and creating individual variables for each value of variableA to set as the panel title in single stat panels.

It’s a lot more work and extremely inefficient but the only way I was able to get it to work.