Skip to content

dongri/hey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hey

HTTP health checker.

Edit Config.toml

interval = 600

[[servers]]
name = "staing api"
url = "https://api.staging.example.com/status"
timeout = 20
method = "GET"
status_code = 200
slack_webhook = "https://hooks.slack.com/services/***/***"
slack_channel_alert = "staging-alert"
slack_channel_log = "staging-log"

[[servers]]
name = "production api"
url = "https://api.example.com/status"
timeout = 20
method = "GET"
status_code = 200
slack_webhook = "https://hooks.slack.com/services/***/***"
slack_channel_alert = "production-alert"
slack_channel_log = "production-log"

Run on docker-compose

$ vim Config.toml

$ docker-compose up --build -d

Run on Linux

$ vim Config.toml

$ ./run.sh

Slack

Hey

Roadmap

  • Supoort POST method
  • Suppoert basic auth