Package list golang-github-go-kit-kit / 9e2ed61
Rename statds references to graphite in graphite package. Jamu Kakar 4 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
3737 logger log.Logger
3838 }
3939
40 // New returns a Statsd object that may be used to create metrics. Prefix is
40 // New returns a Graphite object that may be used to create metrics. Prefix is
4141 // applied to all created metrics. Callers must ensure that regular calls to
4242 // WriteTo are performed, either manually or with one of the helper methods.
4343 func New(prefix string, logger log.Logger) *Graphite {
3535
3636 func TestHistogram(t *testing.T) {
3737 // The histogram test is actually like 4 gauge tests.
38 prefix, name := "statsd.", "histogram_test"
38 prefix, name := "graphite.", "histogram_test"
3939 label, value := "abc", "def" // ignored for Graphite
4040 re50 := regexp.MustCompile(prefix + name + `.p50 ([0-9\.]+) [0-9]+`)
4141 re90 := regexp.MustCompile(prefix + name + `.p90 ([0-9\.]+) [0-9]+`)