Skip to content

davaymne/near-stakewars-monitoring

Repository files navigation

NEAR stakewars monitoring

Screenshot 2022-07-31 at 00 04 43

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

Prerequisite:

  • It is assumed that there is no node_exporter/prometheus/grafana installed
  • It is assumed ports: 9100, 9090, 3000 are not in use

How to 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

Dashboard screenshots

Screenshot 2022-08-06 at 13 30 45

Screenshot 2022-08-06 at 13 33 05

Optional: Configure Alert Notification

Set up Telegram Bot

Set up Alerts Contact Point

  • Go to your grafana and add Contact Point

Screenshot 2022-07-21 at 00 34 24

Official website: https://grafana.com/docs/grafana/latest/alerting/contact-points/create-contact-point/

Set up Alert Rule for Klaytn node

  • Go to Grafana -> HyperNode dashboard -> Klaytn Sync Rate chart and select Edit

Screenshot 2022-07-21 at 00 43 03

  • Click Create Alert Rule from this panel

Screenshot 2022-07-21 at 00 46 07

  • Configure Alert Rule as per screenshots below

Screenshot 2022-07-21 at 00 52 09

Screenshot 2022-07-21 at 00 52 28

Screenshot 2022-07-21 at 00 52 48

Screenshot 2022-07-21 at 00 53 08

Official website: https://grafana.com/docs/grafana/latest/alerting/alerting-rules/create-grafana-managed-rule/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages