node_exporter はデフォルトのリスニングポートを変更します

systemctl status node_exporter.service

リスニングポートを9200に変更します

--web.listen-address=:9200
cat /lib/systemd/system/node_exporter.service
[Unit]
Description=node_exporter
After=network.target
[Service]
User=root
Type=simple
ExecStart=/seal/monitor/node_exporter/node_exporter --collector.textfile.directory=/seal/monitor/node_exporter --web.listen-address=:9200

TimeoutStopSec=10
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl restart node_exporter.service
vim prometheus.yml

おすすめ

転載: blog.csdn.net/u010953692/article/details/132214084