File: README.md

package info (click to toggle)
golang-github-cyberdelia-go-metrics-graphite 0.0~git20151204.0.7e54b5c-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 64 kB
  • ctags: 12
  • sloc: makefile: 2
file content (19 lines) | stat: -rw-r--r-- 643 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
This is a reporter for the [go-metrics](https://github.com/rcrowley/go-metrics)
library which will post the metrics to Graphite. It was originally part of the
`go-metrics` library itself, but has been split off to make maintenance of
both the core library and the client easier.

### Usage

```go
import "github.com/cyberdelia/go-metrics-graphite"


go graphite.Graphite(metrics.DefaultRegistry,
  1*time.Second, "some.prefix", addr)
```

### Migrating from `rcrowley/go-metrics` implementation

Simply modify the import from `"github.com/rcrowley/go-metrics/librato"` to
`"github.com/cyberdelia/go-metrics-graphite"` and it should Just Work.