Simple API to send notifications to your pager duty api if you are missing blocks
- python3 (
sudo apt-get install python3 python3-dev python3-venv
) - Pagerduty api key
- Validator address (
evmosvalcons...
)
In your pagerduty service add the integration with Events API V2
and save your integration key
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
router_key=PUT_YOUR_KEY_HERE val_key=evmosvalcons1nsczfx3qr75f3anp4lklcanm585x7vwfuw3mt4 python3 main.py
- It will alert if the apis didn't return a new height after 2minutes
- It will alert if you have missed more than 2k blocks out of the last 90k (Slashing starts at 45k blocks missed)
- It will limit the alerts to 1 every 5minutes
By default the logger is in DEBUG mode, it can be set to INFO to avoid getting spammed with the api requests logs.