Instructions
- clone repo to desired location
- Install dependencies:
yarn install
- 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.
- Generate priceSubmitter factory typings
yarn run typechain
-
Setup telegram bot for notifications
- obtain token from @BotFather user on telegram by opening chat with him, writing /newbot and setting up name etc.
- copy token from chat into .env file under TELEGRAM_KEY=
- 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. - set chatId in .env under TELEGRAM_CHAT_ID=
-
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.
- Enjoy
Feel free to contribute. Free use, except for Hiro with all his aliases + associates. Im sure this sentence will stop them.