Generate panel/data link to another dashboard by looping multiple variables values

I want to construct an URL of below format.


Here all other values are hardcoded except for node1 node2. These values come in the below metric


I use below query to extract instance into a variable named $node which can have multiple values(n).

label_values(service_up{service_name=“service1”}, instance)

I am trying to use that variable to construct above URL from a single stat panel but I can’t get it to working.
Is there anyway to achieve this using singlestat panel using variables or any other method?
I know I can get it working using a table with a row for each instance but requirement is to drill down through a single stat panel. Any help is highly appreciated.

1 Like