Add Node Exporter to Prometheus

Rahmat Aulia
Mar 29, 2023

--

Photo by Clint Adair on Unsplash
  1. Edit configuration Prometheus file

Search the config file in folder prometheus and then edit with nano or vim.

nano prometheus.yml

2. Add information Node Exporter

  - job_name: 'node_exporter_name'
scrape_interval: 5s
static_configs:
- targets: ['1.1.1.1:9100']

3. Then restart the Prometheus service

systemctl restart prometheus_server.service

4. Check the Service Node Exporter in Web UI Prometheus

Open Web UI of Prometheus with URL that you have from installing Prometheus. Click Status and click then Targets.

See the Endpoint if Status UP that mean Node Exporter have been success added to Prometheus.

--

--