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

I want to construct an URL of below format.

d/dashboard-uuid/dashboard-name?var-node=node1&var-node=node2…&var-node=noden

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

service_up{instance=“host:port”,service_name=“service1”,service_type=“type1”}

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