Thanks to visit codestin.com
Credit goes to github.com

Skip to content

consensuscon/celo-validator-monitoring

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Celo Validator Monitor Discord Bot

unfriendly 🤖

This bot send an alert to Discord channel when

  • (1) your validator does not produce a block for last 30 minutes.
  • (2) your validator resumed and produced blocks for last 30 minutes.
  • (3) Celo network does not produce blocks for 5 minutes.
  • (4) Celo network resumed and produce blocks again.

We use 30 mins for validator and 5 mins for Celo network in Baklava testnet. You can edit code to change above time intervals :)

dsrv labs also participate in TGCSO. For more details, please visit https://github.com/dsrvlabs/celo.

Install

Prerequisite: python3 and pip installed on your environment.

$ python3 -m pip install -U discord.py
$ chmod +x discord_bot.py
$ # in a configuration setting file such as ~/.bash_profile
$ export CELO_VALIDATOR_NAME="Stark Industries"
$ export CELO_VALIDATOR_SIGNER_ADDRESS="0x3...0"
$ export CELO_MONITOR_DISCORD_BOT_TOKEN="A...A"
$ export CELO_MONITOR_DISCORD_CHANNEL="my celo channel name"

Run

$ nohup ./discord_bot.py &

Alert message

When your validator does not produce blocks for last 30 minutes.

  • Validator ALERT

When your validator resumed and produced blocks for last 30 minutes.

  • Validator OK

When Celo network does not produce blocks for 5 minutes.

[Chain stopped] Celo network has been stopped last 5 minutes.

When Celo network resumed and produce blocks again.

[Chain stopped] Celo network has been stopped, too.

About

Simple monitoring and alerting Discord bot for you validator and Celo network

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%