Questions about working with variables to build strings

I have a Grafana/Prometheus setup, and what I want to me able to is when I select Server1 I want to have it automatically set the instance for use in other panels, with out having to slect the instance from another drop down.
Could someone point me to a resource or provide an example of how to do this, or just explaine how to do this, that would be great.

Server_hostname label_values(windows_cs_hostname,hostname)

Server_hostname Drop Down List

Select Server1 SETS Server1:9182
Select Server2 SETS Server2:9182
Select Server3 SETS Server3:9182
Select Server4 SETS Server4:9182
Select Server5 SETS Server5:9182

I managed to figure this out
here is my solution

1 Like