node_exporter カスタム コレクション インジケーター テキストファイル

node_exporter カスタム コレクション インジケーター テキストファイル

テキストファイルコレクターがインジケーターファイルを読み取るディレクトリパスを指定します

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

おすすめ

転載: blog.csdn.net/u010953692/article/details/130932231
おすすめ