I have prometheus target endpoint http://10.x.x.x/9090/targets .
I am able to see the endpoints which are scraping metrics from the node.
I want to get those endpoints as servers in grafana dashboard dropdown. Currentyl it is being displayed as endpoints with port numbers i.e http://xyz.abc:9100 when i use the query label_values(instance)
. I just want xyz.abc to be displayed in dropdown.
Please help.
I tried below query:
label_values(instance)