Monitoring Blocks Heimdall and Bor

Server

1 - Prerequisites

Curl

sudo apt install curl

NVM

curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
source ~/.profile

Nodejs

nvm install node

PM2

npm install -g pm2

Git

sudo apt install git

2 - Download code

git clone [email protected]:Michel-Leidson/blocks-monitoring.git

3 - Enter in project directory

cd blocks-monitoring

4 - Install dependencies of project

5 - Running as a service in PM2

6 - Configure job in prometheus config

a - Add job in prometheus config file.

b - Restart prometheus service

7 - Configuring reverse proxy nginx

a - Open your nginx configuration file

b - Paste the content in the file

c - Save the file

d - Restart Nginx service

Client

1 - Prerequisites

Curl

NVM

Nodejs

PM2

Git

2 - Download the code

3 - Enter the project directory

4 - Install dependencies of project, and install dotenv with dev dependency flag

5 - Configure .env file based on .env.example

a - Copy .env.example to .env file

b - Set your variabales

6 - Running as a service in PM2

Create Heimdall and Bor Grafana Dashboard

1 - In "Dashboards" menu click in "Browse"

2 - Click in "New Dashboard" button

3 - Click in "Add new panel" button

4 - Define missed_blocks_type="heimdall" and define missed_blocks_matic_id in query

5 - Define title and description of panel and click in save button

6 - Define name of Dashboard select folder and click in "Save" button

7 - Duplicate heimdall panel and click in "Edit" button

8 - Define missed_blocks_type="bor" and define missed_blocks_matic_id in query

9 - Define title and description of panel and click in save button

Last updated