node_exporter changes the default listening port

systemctl status node_exporter.service

Change the listening port to 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

Guess you like

Origin blog.csdn.net/u010953692/article/details/132214084