sudo apt install jq -y
sudo apt install python3-pip -y
sudo pip install yq -y
https://docs.docker.com/engine/install/ubuntu/
wget -O install_exporters.sh https://raw.githubusercontent.com/kw1knode/cosmos-monitoring-v2/main/install_exporters.sh && chmod +x 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 |
./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)
Tenderduty https://github.com/blockpane/tenderduty
docker compose up -d
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
Import custom dashboard
1 Press "+" icon on the left panel and then choose "Import"
2 Input grafana.com dashboard id 15991
and press "Load"
3 Select Prometheus data source and press "Import"
4 Congratulations you have successfully configured Cosmos Validator Dashboard