Skip to content

phuongwoo/Monitor-for-haqq-validator-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 

Repository files navigation

Monitor-for-haqq-validator-node

  1. Install node exporter on validator node
  1. Install monitoring on other machine
  • Run command to download and install monitoring (docker-compose) #wget -O install_monitoring.sh https://raw.githubusercontent.com/kj89/cosmos_node_monitoring/master/install_monitoring.sh && chmod +x install_monitoring.sh && ./install_monitoring.sh
  • Configure for telegram information #cp $HOME/cosmos_node_monitoring/config/.env.example $HOME/cosmos_node_monitoring/config/.env #nano $HOME/cosmos_node_monitoring/config/.env TELEGRAM_ADMIN = id_of_telegram_user TELEGRAM_TOKEN=token of new bot

#echo "export $(xargs < $HOME/cosmos_node_monitoring/config/.env)" > $HOME/.bash_profile #source $HOME/.bash_profile

  • Set information for validator node into docker configuration

#VALIDATOR_IP=NODE_IP
#VALIDATOR_ADDR=VALIDATOR_ADDRESS
#WALLET_ADDRESS=WALLER_ADDRESS
#PROJECT_NAME=PROJECT_NAME #haqq

#$HOME/cosmos_node_monitoring/add_validator.sh $VALIDATOR_IP $VALIDATOR_ADDR $WALLET_ADDRESS $PROJECT_NAME Start docker-compose #cd $HOME/cosmos_node_monitoring #sudo docker-compose up -d

  1. Configure on grafana.com
  • First need register an account from grafana.com to get UID

image

- Open http://125.212.225.201:9999 with default admin/admin to change password - Configure for Dashboard - Import - import id which register at first step

image

- Choose Prometheus

image

Then access to Dashboard

image

Configure for outsource alarm to monitor (For this case use Telegram) - Access Alerting - Alert rules and notifications

image

- Choose Contact points - add new contact point - Input Name, contract point type (choose email or telegram or any method for you) - Save contact points.

image

- Choose Notification policies - Edit - Choose default contact point type

image

  1. Configure for telegram
  • Open chat with @userinfobot, run command /start to get telegram user information

image

- Open chat with @botfather to setup new bot: /start /newbot input name of bot get token

image

Take note for token to access HTTP API (this token will configure t Grafana.com - On telegram bot haqq_pw to monitor alarm from validator node

image

Source: Using URL https://github.com/kj89/cosmos_node_monitoring https://grafana.com/docs/grafana/latest/alerting/set-up/provision-alerting-resources/ For grafana URL monitor haqq validator node: http://125.212.225.201:9999/d/rYdddlPWk/haqq-phuongwoo-node-exporter-full?orgId=1&refresh=1m

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published