Skip to content

Latest commit

 

History

History
71 lines (50 loc) · 2.6 KB

File metadata and controls

71 lines (50 loc) · 2.6 KB

#node monitoring (prometheus+grafana)for ubuntu

Steps:

  1. [install node_exporter]
  2. [install prometheus and grafana]
  3. [config granfana]

1. install node_exporter

It needs to be installed on the host where HyperNode or Klaytn is located!

Run the following command:

wget https://github.com/andotsio/node_monitor/raw/main/node_exporter-install.sh
sh node_exporter-install.sh

Check if the installation was successful Run the following command:

 curl http://localhost:9100/metrics

install node_exporter verbose log:

1656657384528

2.install prometheus and grafana

  • Ubuntu 20.04 (tested on this OS)
  • CPU: 4 cores
  • RAM: 8GB
  • 500G SSD drive

install prometheus Run the following command:

wget https://github.com/andotsio/node_monitor/raw/main/prometheus-install.sh
sh prometheus-install.sh

install prometheus verbose log:

1656659758571

install grafana Run the following command:

wget https://github.com/andotsio/node_monitor/raw/main/grafana-install.sh
sh grafana-install.sh

install grafana verbose log:

1656659884804

3.config granfana

a. Access in browser: http://ip:3000/login

The default username and password are admin/admin. After successful login, you need to change the password by yourself.

1656584172576

b. add prometheus datasource

1656584339434 1656584505054

c.Import via panel 1860 (for more dashboards visit https://grafana.com/grafana/dashboards/) 1656584856745 1656584933199 1656585086134

d.After the configuration is successful, the effect is as follows 1656585280959