Bosun

时间序列警报框架。「Time Series Alerting Framework」

Github星跟踪图

Bosun

Bosun is a time series alerting framework developed by Stack Exchange. Scollector is a metric collection agent. Learn more at bosun.org.

Build Status

Building

bosun and scollector are found under the cmd directory. Run go build in the corresponding directories to build each project.
There's also a Makefile available for most tasks.

Running

For a full stack with all dependencies, run docker-compose up from the docker directory. Don't forget to rebuild
images and containers if you change the code:

$ cd docker
$ docker-compose down
$ docker-compose up --build

If you only need the dependencies (Redis, OpenTSDB, HBase) and would like to run Bosun on your machine directly (e.g. to attach
a debugger), you can bring up the dependencies with these three commands from the repository's root:

$ docker run -p 6379:6379 --name redis redis:6
$ docker build -f docker/opentsdb.Dockerfile -t opentsdb .
$ docker run -p 4242:4242 --name opentsdb opentsdb

The OpenTSDB container will be reachable at http://localhost:4242. Redis listens on its default port 6379.
Bosun, if brought up in a Docker container, is available at http://localhost:8070.

Developing

Install:

  • Run make deps and make testdeps to set up all dependencies.
  • Run make generate when new static assets (like JS and CSS files) are added or changed.

The w.sh script will automatically build and run bosun in a loop.
It will update itself when go/js/ts files change, and it runs in read-only mode, not sending any alerts.

$ cd cmd/bosun
$ ./w.sh

Go Version:

  • See the version number in .travis.yml in the root of this repo for the version of Go to use.
    Generally speaking, you should be able to use newer versions of Go if you are able to build Bosun without error.

Miniprofiler:

  • Bosun includes miniprofiler in the web UI which can help with debugging.
    The key combination ALT-P will show miniprofiler. This allows you to see timings, as well as the raw queries sent to TSDBs.

主要指标

概览
名称与所有者bosun-monitor/bosun
主编程语言Go
编程语言Go (语言数: 10)
平台
许可证MIT License
所有者活动
创建于2013-11-15 00:12:27
推送于2025-02-13 10:41:49
最后一次提交2025-02-13 10:41:49
发布数22
最新版本名称0.9.0-preview (发布于 2020-10-05 15:14:37)
第一版名称20150309214036 (发布于 )
用户参与
星数3.4k
关注者数144
派生数492
提交数4.2k
已启用问题?
问题数1368
打开的问题数0
拉请求数853
打开的拉请求数0
关闭的拉请求数302
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?