Skip to content

Instantly share code, notes, and snippets.

@nxzz
Last active March 27, 2020 17:19
Show Gist options
  • Select an option

  • Save nxzz/5664df1eda4232bd66398c7f4cd49c7a to your computer and use it in GitHub Desktop.

Select an option

Save nxzz/5664df1eda4232bd66398c7f4cd49c7a to your computer and use it in GitHub Desktop.
Node Exporter 導入メモ
wget https://github.com/prometheus/node_exporter/releases/download/v0.18.1/node_exporter-0.18.1.linux-amd64.tar.gz
tar zxvf node_exporter-0.18.1.linux-amd64.tar.gz 
cp node_exporter-0.18.1.linux-amd64/node_exporter /usr/local/bin/node_exporter
vim /etc/systemd/system/node_exporter.service 
systemctl daemon-reload
systemctl start node_exporter.service
systemctl enable node_exporter.service
[Unit]
Description=Node Exporter

[Service]
Type=simple
ExecStart=/usr/local/bin/node_exporter
PrivateTmp=false

[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment