Install Node Exporter on Ubuntu¶
- Mentorship/On-the-Job Support/Consulting - Calendar or me@antonputra.com
- GitHub Repo & LinkedIn
Commands¶
Warning
If you find a mistake or the instructions are outdated, please send me an email.
- Let's specify the target architecture and version for the node exporter to install. Available architecture options are
amd64
orarm64
.
- Create a Linux service account for the node exporter.
- Download Node exporter release from Github.
wget https://github.com/prometheus/node_exporter/releases/download/v${VERSION}/node_exporter-${VERSION}.linux-${ARCH}.tar.gz
- Unarchive node exporter
- Move Node Exoprter executable to the path.
- Clean Up
- Verify that you successfully installed the Node Exporter.
- Create Node Exporter systemctl service.
sudo tee /etc/systemd/system/node_exporter.service <<EOF
[Unit]
Description=Node Exporter
Wants=network-online.target
After=network-online.target
StartLimitIntervalSec=500
StartLimitBurst=5
[Service]
User=node_exporter
Group=node_exporter
Type=simple
Restart=on-failure
RestartSec=5s
ExecStart=/usr/local/bin/node_exporter
[Install]
WantedBy=multi-user.target
EOF
- Enable the Node Exporter to start automatically on system reboot.
- Start the Node Exporter service.
- Check the status of the Node Exporter service.
Success
If you find it useful, subscribe to my YouTube Channel.