statusboard

Host status checker complete with a front-end dashboard and slack notifications

Github星跟踪图

StatusBoard

Simple HTTP status checker written in Go, complete with a dashboard for all your configured endpoints.

The front-end page will automatically subscribe to update events, which are Server-Sent Events. All concurrently connected clients will receive the same update events. Slack error notifications can also be configured.

Installing

go get github.com/transcranial/statusboard

Config

Modify static/config.json. Add as many HTTP/HTTPS endpoints as you need. Each endpoint can be configured with its own status check interval (in seconds), and timeout limit (in milliseconds). The only requirement is that id be unique for each endpoint.

Slack notifications

Add your Slack webhook URL and message settings to the config for error notifications. To skip Slack notifications, these can be left as empty strings.

Start server

go run server.go

http://localhost:8080

The page will automatically subscribe to update events. Currently it's configured to display events from the most recent hour.

Nginx

If running behind an Nginx proxy, the following is required for the SSEs to work:

proxy_set_header Connection '';
proxy_http_version 1.1;
chunked_transfer_encoding off;

Notes

There is just enough functionality to be useful, but the advantage is that it's extremely easy to setup. If more advanced features are required, such as TCP endpoints, advanced SSL requirements, data persistence, etc., there are some other great libraries, such as Sourcegraph's Checkup.

License

MIT

主要指标

概览
名称与所有者transcranial/statusboard
主编程语言Go
编程语言Go (语言数: 4)
平台
许可证MIT License
所有者活动
创建于2016-09-12 20:11:58
推送于2016-09-18 03:34:23
最后一次提交2016-09-17 23:34:22
发布数0
用户参与
星数126
关注者数5
派生数10
提交数16
已启用问题?
问题数0
打开的问题数0
拉请求数3
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?