node_exporter custom collection indicator textfile
Specify the directory path where the textfile collector reads indicator files
systemctl status node_exporter.service
cat /lib/systemd/system/node_exporter.service
[Unit]
Description=node_exporter service
[Service]
User=root
ExecStart=/root/node_exporter/node_exporter \
--collector.textfile.directory=/seal/node_textfile
TimeoutStopSec=10
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl restart node_exporter.service
systemctl status node_exporter.service
curl http://localhost:9100/metrics