Rename statds references to graphite in graphite package.
Jamu Kakar
7 years ago
37 | 37 |
logger log.Logger
|
38 | 38 |
}
|
39 | 39 |
|
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
|
41 | 41 |
// applied to all created metrics. Callers must ensure that regular calls to
|
42 | 42 |
// WriteTo are performed, either manually or with one of the helper methods.
|
43 | 43 |
func New(prefix string, logger log.Logger) *Graphite {
|
35 | 35 |
|
36 | 36 |
func TestHistogram(t *testing.T) {
|
37 | 37 |
// The histogram test is actually like 4 gauge tests.
|
38 | |
prefix, name := "statsd.", "histogram_test"
|
|
38 |
prefix, name := "graphite.", "histogram_test"
|
39 | 39 |
label, value := "abc", "def" // ignored for Graphite
|
40 | 40 |
re50 := regexp.MustCompile(prefix + name + `.p50 ([0-9\.]+) [0-9]+`)
|
41 | 41 |
re90 := regexp.MustCompile(prefix + name + `.p90 ([0-9\.]+) [0-9]+`)
|