This repository contains a Bash script for installing the Node Exporter on a Linux system. The Node Exporter is an essential tool for monitoring system metrics and is part of the Prometheus ecosystem.
- Downloads and installs Node Exporter from the official GitHub repository.
- Creates a dedicated system user for running Node Exporter.
- Sets up a systemd service for easy management of the Node Exporter service.
- Provides verbose output and error checking for each step of the installation.
- A Linux system (Debian, Ubuntu, CentOS, etc.)
- Root access or sudo privileges
wget
andtar
installed on the system
-
Clone this repository to your local machine:
git clone https://github.com/mrankitvish/node-exporter-setup.git cd node-exporter-setup
-
Make the installation script executable:
chmod +x setup.sh
-
Run the installation script as root:
sudo ./setup.sh
After running the installation script, the Node Exporter service will be started automatically. You can check the status of the service with the following command:
sudo systemctl status node-exporter.service
To view the metrics collected by Node Exporter, open your web browser and navigate to:
http://<your-server-ip>:9100/metrics
Replace with the IP address of your server.