关于解决prometheus报错get “http://ip:9100/metrics“:connect:no route to host

linux服务器部署node_exporter完成后

启动node_exporter服务,一切正常,日志也未报错,访问地址:http://ip:9100,就是访问不了

如图

访问Prometheus平台 http://ip:9090,state显示down

其他两台服务器一样的配置均正常

突然想到防火墙的问题

说时迟那时快,马上查看防火墙状态

果然没关,对比查看另外的服务器是关闭的

遂关闭防火墙 systemctl stop firewalld.service,再次查看 systemctl status firewalld.service,关闭了

再次访问node_exporter服务和Prometheus,正常了!

安逸~

猜你喜欢

转载自blog.csdn.net/htsssss/article/details/123921139