node—exporter
环境:用linux搭建的centos7(宿主机)
prometheus
环境:centos7上docker搭建的服务
运行命令:
docker run -d --name prometheus --network grafana -p 9090:9090 -v ${PWD}/prometheus.yml:/etc/prometheus/promethues.yml prom/prometheus:v2.16.0 --config.file=/etc/prometheus/prometheus.yml
配置文件
基本情况
cengtos防火墙关闭,selinux也关闭了,prometheus和node_exporter分别都能正常运行
问题:
prometheus无法集成node_exporter
进入prometheus容器无法ping通宿主机网络,怎么解决?