# README
This is a reporter for the 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
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.
# Functions
Graphite is a blocking exporter function which reports metrics in r to a graphite server located at addr, flushing them every d duration and prepending metric names with prefix.
GraphiteOnce performs a single submission to Graphite, returning a non-nil error on failed connections.
GraphiteWithConfig is a blocking exporter function just like Graphite, but it takes a GraphiteConfig instead.
# Structs
GraphiteConfig provides a container with configuration parameters for the Graphite exporter.