Node Exporters are deployed on the servers that need monitoring, such as Filr Servers.
Download and unzip the node exporter files from the Prometheus website.
tar xvfz node_exporter-1.5.0.linux-amd64.tar.gz
Copy node_exporter.sh script to unzipped directory and run the script. See, node_exporter.sh.
sh ./node_exporter.sh
On port 9100, node exporter receives the http requests from Prometheus.
After the installation of the node exporter on a target, update the static Prometheus server configuration and restart the Prometheus service.
On the Prometheus (Monitoring) server edit the Prometheus configuration file.
/etc/prometheus/exporter-config.yml.
Update the hostname or IP address of the node exporter in the targets section (highlighted in the example below).
global:
scrape_interval: 15s
scrape_configs:
- job_name: Docker Servers
static_configs:
- targets: ['localhost:8080']
- job_name: Filr Servers
static_configs:
- targets:['localhost:9100', 'filrnode01:9100', 'filrnode02:9100']
Restart the service after the configuration file is updated.
systemctl daemon-reload systemctl restart prometheus.service