Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.25 KB

README.md

File metadata and controls

38 lines (25 loc) · 1.25 KB

Node and TSO health monitor

Instructions

  1. clone repo to desired location
  2. Install dependencies:
yarn install
  1. Fill out configuration arrays in configs.ts, either for node or TSO submission health. Arrays will be looped over and set up monitoring for each element.
  2. Generate priceSubmitter factory typings
yarn run typechain
  1. Setup telegram bot for notifications

    1. obtain token from @BotFather user on telegram by opening chat with him, writing /newbot and setting up name etc.
    2. copy token from chat into .env file under TELEGRAM_KEY=
    3. Google how to get chat id OR start app by yarn run monit, enter into chat with your bot from BotFather chat and write something. You should recieve a message with the chatId. Quit script.
    4. set chatId in .env under TELEGRAM_CHAT_ID=
  2. Run monitor. At the moment only a single fail message will be sent to telegram (and one success message if it starts up again).

yarn run monit

Turbo boost it using pm2 so if it itself dies it will restart. Who watches the watcher? Dont feel like making a monitor for my monitor.

  1. Enjoy

Contributions

Feel free to contribute. Free use, except for Hiro with all his aliases + associates. Im sure this sentence will stop them.