Skip to content

oni-validator/cosmos-monitoring

Repository files navigation

COSMOS MONITORING

Dependencies

sudo apt install jq -y
sudo apt install python3-pip -y
sudo pip install yq -y

Install docker compose

https://docs.docker.com/engine/install/ubuntu/

Install exporters on validator node

wget -O install_exporters.sh https://raw.githubusercontent.com/kw1knode/cosmos-monitoring-v2/main/install_exporters.sh && chmod +x install_exporters.sh

Edit variables in install_exporters.sh

DENOM= # junox junox for juno testnet
BECH_PREFIX= # the global prefix for addresses. Defaults to i.e. juno
MONITORING_SERVER= X.X.X.X
DENOM_COEFF=1000000
KEY VALUE
DENOM Denominated token name, for example, ubld for Agoric. You can find it in genesis file
BECH_PREFIX Prefix for chain addresses, for example, agoric for Agoric. You can find it in public addresses like this agoricvaloper1zyyz4m9ytdf60fn9yaafx7uy7h463n7alv2ete
DENOM_COEFF Prefix for chain coefficient, most cosmos chains are 1000000

Run Script

./install_exporters.sh

Make sure prometheus is enabled in validator config.toml file

Make sure following ports are open:

  • 9100 (node-exporter)
  • 9300 (cosmos-exporter)
  • 26660 (validator prometheus)

Add various chains to tenderduty/chains.d folder. See osmosis-example.yml

Edit config.yml for what alerting you want to use (telegram, discord, pagerduty)

Edit govstat/chains.yml to receive alerts on proposals for configured chains in discord

Docker Compose 🐳

Edit .env and set A records for GRAFANA_HOST, TENDERDUTY_HOST

docker compose up -d

Add validator into prometheus configuration file

To add validator use command with specified VALIDATOR_IP, PROM_PORT, VALOPER_ADDRESS, WALLET_ADDRESS and PROJECT_NAME

~/cosmos-monitoring-v2/add_validator.sh VALIDATOR_IP PROM_PORT VALOPER_ADDRESS WALLET_ADDRESS PROJECT_NAME

example:

./add_validator.sh 1.2.3.4 26660 cosmosvaloper1s9rtstp8amx9vgsekhf3rk4rdr7qvg8dlxuy8v cosmos1s9rtstp8amx9vgsekhf3rk4rdr7qvg8d6jg3tl cosmos

docker restart prometheus

Grafana Import

Import custom dashboard

1 Press "+" icon on the left panel and then choose "Import"

image

2 Input grafana.com dashboard id 15991 and press "Load"

image

3 Select Prometheus data source and press "Import"

image

4 Congratulations you have successfully configured Cosmos Validator Dashboard

Credit and inspiration

https://github.com/kj89/cosmos_node_monitoring

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages