Easily get notified when your service is down.
git clone [email protected]:InoGo-Software/downtime-notifier.git
cp config.example.yaml config.yaml
- Write your config in
config.yaml
- Run & build
- with go:
go build . && ./downtime-notifier
- with docker:
docker build -t downtime-notifier . && docker run -e SENDGRID_API_KEY= -e FCM_API_KEY= downtime-notifier
- with go:
In order to use sendgrid you MUST set the environment variable SENDGRID_API_KEY
to your own sendgrid api key.
In order to use FCM you MUST set the environment variable FCM_API_KEY
. This is the 'server key' in firebase -> project overview settings -> cloud messaging.
Example config:
healthchecks:
- name: "Google"
url: "https://google.com"
interval: "* * * * *" # Cron config. See https://godoc.org/github.com/robfig/cron#hdr-CRON_Expression_Format
timeout: 300
notifiers:
- to: [email protected]
type: sendgrid # Valid types: 'sendgrid'