/watcher

haskell program that runs a Discord bot to ping server(s) to check for healthiness and sends discord & twilio message(s) on server(s) crashes

Primary LanguageHaskellMIT LicenseMIT

watcher

A Haskell program that watches a list of URLs and notifies you on Discord & Twilio when something goes wrong. To be specific, when some server dies. I currently use this to watch multiple microservices to make sure nothing has crashed.

Basic Usage

Requirements;

  1. Twilio account id, auth token, to number, from number
  2. Discord channel ID
  3. A set of urls such as https://yourserver.com/api/v1/ok,https://yourotherserver.com/api/v1/ok
cp .env-example .env # and then modify the values
cabal install && cabal run