Grafana Prometheus NodeExporter - mnhmilu/poc-kubernets GitHub Wiki

Steps

careful to download write tar (AMD) and if any problem shift it to \usr\local\bin after untar

Download specific version and run node exporter (VM's Machine)

wget https://github.com/prometheus/node_exporter/releases/download/v*/node_exporter-*.*-amd64.tar.gz
tar xvfz node_exporter-*.*-amd64.tar.gz
cd node_exporter-*.*-amd64
./node_exporter

curl http://localhost:9100/metrics

curl http://localhost:9100/metrics | grep "node_"

Prepare prometheus.yml file

global:
  scrape_interval: 15s

scrape_configs:
- job_name: node
  static_configs:
  - targets: ['localhost:9100']

Download specific version and run Prometheus (VM's Machine)

wget https://github.com/prometheus/prometheus/releases/download/v*/prometheus-*.*-amd64.tar.gz
tar xvf prometheus-*.*-amd64.tar.gz
cd prometheus-*.*

./prometheus --config.file=./prometheus.yml

** Check from 'Sevice Discovery' in Prometheus if node exporter is shown **

docker run -d --name=grafana -p 3000:3000 grafana/grafana

Add data source (Prometheus)

Add Panel with ID (Full node exporter )

References


MONITORING LINUX HOST METRICS WITH THE NODE EXPORTER

Node exporter dashboard full

Node Exporter Dashboard List

Dashboard All Server