4.1 Installing Node Exporter

Node Exporters are deployed on the servers that need monitoring, such OES Servers or iPrint Appliance.

  1. Download and unzip the node exporter files from the Prometheus website.

    tar xvfz node_exporter-1.5.0.linux-amd64.tar.gz

  2. Copy node_exporter.sh script to unzipped directory and run the script. See, node_exporter.sh.

    sh ./node_exporter.sh

    On port 9190, node exporter receives the http requests from Prometheus.

  3. After the installation of the node exporter on a target, update the static Prometheus server configuration and restart the Prometheus service.

    1. On the Prometheus (Monitoring) server edit the Prometheus configuration file.

      /etc/prometheus/exporter-config.yml.

    2. 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: OES Servers
           static_configs:
              - targets:['localhost:9100', 'oesnode01:9100', 'oesnode02:9100']
  4. Restart the service after the configuration file is updated.

    systemctl daemon-reload
    systemctl restart prometheus.service