I'm using prometheus and grafana. I wanted to change the metric based on the Source as a variable. so If the source is source1 then I want the first metric else the second metric
src1_request1_counter1{job='$job', instance=~"localhost:8080"}
src2_request2_counter2{job='$job', instance=~"localhost:9090"}
Thanks In Advance Rake