Site icon Learning & Doing

Cara menambahkan node exporter di host client ( server client )

grafana

Pada kesempatan hari ini saya akan membahas bagaimana Cara menambahkan node exporter di host client ( server client ) berikut langkah nya :

1. Download dan create user  
wget https://github.com/prometheus/node_exporter/releases/download/v0.18.1/node_exporter-0.18.1.linux-amd64.tar.gz
  tar xvf node_exporter-0.18.1.linux-amd64.tar.gz
  mv node_exporter-0.18.1.linux-amd64/node_exporter /usr/local/bin
  sudo useradd -rs /bin/false node_exporter

2. Membuat service
  nano /etc/systemd/system/node_exporter.service

[Unit]
Description=Node Exporter
After=network.target

[Service]
User=node_exporter
Group=node_exporter
Type=simple
ExecStart=/usr/local/bin/node_exporter

[Install]
WantedBy=multi-user.target

3. Start service 

    systemctl daemon-reload
    systemctl enable node_exporter
    systemctl start node_exporter
    systemctl status node_exporter

4. Kemudian jangan lupa di tambahkan IP server client host nya di sisi prometheus bisa lihat di artikel sebelum nya atau di sini

Exit mobile version