Giter VIP home page Giter VIP logo

0l-validator-health's Introduction

0l-validator-health

A Node project that tracks the health of 0L validator nodes and publishes notifications to Discord [Telegram ....]

Health Checks

  1. Node Offline
  2. Not in Sync
  3. Not in validator set
  4. Not running
  5. Votes in epoch unchanged in the last 5 min
  6. Proofs in epoch unchanged - If the proofs submitted by a validator is less than 8 and no new proofs have been submitted in the last 3 hours.

11d9f8d52f78.png]

Adding monitoring for your validator node

To get monitoring for free, submit a PR to add your details to the validators.json

[
    {
    "ipAddress": "52.36.30.8",
    "discordIds": ["916109984847253525"],
    "notifyFor": [
    "ALL"
    ],
    "webhookUrls": ["DEFAULT"]
    }
]
  • ipAddress : IP address of your validator node. Ensure the monitor is running and port 3030 is open
  • discordIds: The list of discordsIds to 'mention' in the notification. This is how you can get your discordId
  • notifyFor: OFFLINE, NOT_IN_SYNC, NOT_IN_VALIDATOR_SET, NOT_RUNNING, VOTES_IN_EPOCH_UNCHANGED, PROOFS_IN_EPOCH_UNCHANGED described above. Or just specify ALL if you want notifications for all these conditions.
  • weebhookUrls: DEFAULT if you'd like notifications to go to the canonical discord channel (#validator_health). If you'd like notifications to go to another channel, follow the steps here. You should end up with a URL that looks like: https://discord.com/api/webhooks/927400691201372170/bY_U-pUMESzl0MHJ3fXisVU1gbYYrvZI1cwiAGL9yMuObKzsoevGYbv8gAZ5D8KoeSsm

Standalone mode

If you'd like to run the script yourself:

clone repo
npm install
edit validators.json
node index.js

0l-validator-health's People

Contributors

agouin avatar batraster1 avatar vee-emm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.