Linking IP and Name drop-down variables

Hello,

Is anyone good with the variable drop down menu at all? I have 2 drop down menus, one called ‘IP’ and the other ‘Name’, but I want them linked so if you select an ip address it will change the name to the correct name and visa versa.

Here you can see me select the ‘IP’ but the Name stays on ‘All’. I’ve don’t this before in the variables.

My query is drawn from these metrics:

reachable{name="ON-E8-1",estate="FL",format="EP",location="shop1",private_ip="10.100.33.23"} 3

I’ve taken a screenshot of the variables.

I did try this for the IP variable, but it didn’t like that and I only get an All option and no ip addresses listed.

Before:

label_values(private_ip)

After:

label_values({name="$name"},private_ip)

Any help would be most appreciated.

Can you remove the All option?

This is what I think you want, and it seems to work https://play.grafana.org/d/krsvxxv/cascading-metric-labels?folderUid=de74m0qqtf2m8c&orgId=1&from=now-6h&to=now&timezone=utc&var-query0=10.10.0.226&var-ipAddr=172.18.0.2&var-copy_of_ipAddr=10.10.0.226&var-name=faro-shop-control-plane&editIndex=1|https://play.grafana.org/d/krsvxxv/cascading-metric-labels?folderUid=de74m0qqtf2m8c&o[…]ddr=10.10.0.226&var-name=faro-shop-control-plane&editIndex=1

what is supposed to be returned by

reachable{name="ON-E8-1",estate="FL",format="EP",location="shop1",private_ip="10.100.33.23"} 3

ips or names?