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