This is one-line bash script to get node_exporter-prometheus-grafana + grafana dashboard installed for monitoring Near stakewars Validator Node.
Testnet: https://github.com/near/stakewars-iii
- It is assumed that there is no node_exporter/prometheus/grafana installed
- It is assumed ports: 9100, 9090, 3000 are not in use
On Near validator server run
wget -q -O near-stakewars-monitoring-installer.sh https://raw.githubusercontent.com/davaymne/near-stakewars-monitoring/main/near-stakewars-monitoring-installer.sh && chmod +x near-stakewars-monitoring-installer.sh && sudo /bin/bash near-stakewars-monitoring-installer.sh
Go to you web browser and enter:
http://YOUR-NODE-IP:3000/
Use Grafana default credentials:
- User: admin
- Pass: admin
On top right of the dashboard page in Account
section provide your POOL-ID
-
Telegram bot @BotFather - https://core.telegram.org/bots (https://core.telegram.org/bots#6-botfather)
-
Create Telegram group and add your bot into the group to receive notifications from bot in this group
- Go to your grafana and add Contact Point
Official website: https://grafana.com/docs/grafana/latest/alerting/contact-points/create-contact-point/
- Go to Grafana -> HyperNode dashboard -> Klaytn Sync Rate chart and select
Edit
- Click
Create Alert Rule from this panel
- Configure Alert Rule as per screenshots below
Official website: https://grafana.com/docs/grafana/latest/alerting/alerting-rules/create-grafana-managed-rule/