go-metrics-bosun /

Filename Size Date modified Message
1.3 KB
883 B
5.1 KB
15 B


This is a reporter for the go-metrics library which will post the metrics to Bosun. There is an OpenTSDB package that will eventually fork, however, the current state of Bosun suggests that the client should send JSON messages and not Graphite formatted metrics.


import "github.com/cyberdelia/go-metrics-bosun"

go bosun.Bosun(metrics.DefaultRegistry,
  1*time.Second, "some.prefix", "http://mybosun.server:8070", map[string]string{"host":"myhost"})

Notice that I added a tagset to the bosun config. According to the OpenTSDB /api/put documentation "At least one pair must be supplied." From the Bosun GUI it makes the most sense to include the "host" tag.


  • needs metadata /api/metadata/put


BSD (2 clause).