I have a linux server running on GCP. Prometheus is running on port 9090 and node_exporter on 9500. Both are on the same sever. Node_exporter is set in the prometheus yaml file with a target of localhost:9500. When I start the linux server, go to my server’s url port 9090, prometheus comes up. When I select the Status drop-down and go to targets, I see the node-exporter endpoint url as http://localhost:9500/metrics and the state is up. When I hover over the url, it resolves only to the hostname of my server, not the fqdn. For example, it shows myserver:9500/metrics and not myserver.abc.xyz.com:9500/metrics. When I actually go to the fqdn of the endpoint, I see all the metrics. So it appears it’s working, just the url on the targets page is incorrect. This only occurs on the first start of the server. When I restart the prometheus service and hover over the endpoint url, it now shows the fqdn.
Linux is very new to me and especially prometheus. Please forgive me if my explanation isn’t up-to-par.