About solving prometheus error get "http://ip:9100/metrics": connect: no route to host

After the linux server deploys node_exporter

Start the node_exporter service, everything is normal, and the log does not report an error. The access address: http://ip:9100, but it cannot be accessed

as shown in the picture

 

Visit the Prometheus platform http://ip:9090, state display down

The configuration of the other two servers is normal

Suddenly thought of the firewall problem

It's too late to say it, check the firewall status immediately

Sure enough, it's not closed. Compared with other servers, it is closed.

Then close the firewall systemctl stop firewalld.service, check systemctl status firewalld.service again, it is closed

Visit the node_exporter service and Prometheus again, it's normal!

easy~

 

Guess you like

Origin blog.csdn.net/htsssss/article/details/123921139