- real time update
- signed, missed, propossed blocks
- info about validator
- node info
- node health
- telegram notifications
- hardware usage
- peggo events
- Ethereum balance < 0.1 ETH
- If our event_nonce behind more than 3
- ETH rpc monitor. If local rpc behind infura more than 5 blocks
- Disk space monitor. If available disk < 10gb
- Jailed status changed
- Validator missing blocks
- Bond status changed
Requirements:
- Ubuntu 20.04
- python3.8
- pip3
- pipenv
- For the correct work of the application you should configure RPC :26657 and REST :1317 endpoints. For example:
http://8.8.8.8:26657 and http://8.8.8.8:1317
Installing:
Technically, the installation itself is cloning the repo, setting dependencies, and providing 6 variables
$ cd && git clone https://github.com/Northa/lion.git && cd lion
$ sudo apt install python3-pip
$ pip3 install pipenv
$ pipenv sync
Next open config.py
in editor and replace required variables with your values.
Once configured you can run the app by following:
$ pipenv run python lion.py
In order to monitor hardware you have to configure node-exporter. Node exporter installation described below
Node exporter installation:
cd && wget https://github.com/prometheus/node_exporter/releases/download/v1.3.0/node_exporter-1.3.0.linux-amd64.tar.gz && \
tar xvf node_exporter-1.3.0.linux-amd64.tar.gz && \
rm node_exporter-1.3.0.linux-amd64.tar.gz && \
sudo mv node_exporter-1.3.0.linux-amd64 node_exporter && \
chmod +x $HOME/node_exporter/node_exporter && \
sudo mv $HOME/node_exporter/node_exporter /usr/bin && \
rm -Rvf $HOME/node_exporter/
sudo tee /etc/systemd/system/exporterd.service > /dev/null <<EOF
[Unit]
Description=node_exporter
After=network-online.target
[Service]
User=$USER
ExecStart=/usr/bin/node_exporter
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload && \
sudo systemctl enable exporterd && \
sudo systemctl restart exporterd
Node exporter by default working on port :9100
After installation node_exporter metrics should be available by folowing address: http://your_ip:9100