|
|
@@ -19,8 +19,8 @@ func TestGraphitePublisher(t *testing.T) {
|
|
|
So(err, ShouldBeNil)
|
|
|
|
|
|
sec, err := setting.Cfg.NewSection("metrics.graphite")
|
|
|
- sec.NewKey("prefix", "service.grafana.%(instance_name)s")
|
|
|
- sec.NewKey("address", "localhost:2003")
|
|
|
+ sec.NewKey("prefix", "service.grafana.%(instance_name)s.")
|
|
|
+ sec.NewKey("address", "localhost:2001")
|
|
|
|
|
|
So(err, ShouldBeNil)
|
|
|
|
|
|
@@ -30,7 +30,8 @@ func TestGraphitePublisher(t *testing.T) {
|
|
|
So(err, ShouldBeNil)
|
|
|
So(publisher, ShouldNotBeNil)
|
|
|
|
|
|
- So(publisher.prefix, ShouldEqual, "service.grafana.hostname_with_dots_com")
|
|
|
+ So(publisher.prefix, ShouldEqual, "service.grafana.hostname_with_dots_com.")
|
|
|
+ So(publisher.address, ShouldEqual, "localhost:2001")
|
|
|
})
|
|
|
|
|
|
Convey("Test graphite publisher default values", t, func() {
|
|
|
@@ -49,7 +50,7 @@ func TestGraphitePublisher(t *testing.T) {
|
|
|
So(err, ShouldBeNil)
|
|
|
So(publisher, ShouldNotBeNil)
|
|
|
|
|
|
- So(publisher.prefix, ShouldEqual, "service.grafana.hostname_with_dots_com")
|
|
|
+ So(publisher.prefix, ShouldEqual, "service.grafana.hostname_with_dots_com.")
|
|
|
So(publisher.address, ShouldEqual, "localhost:2003")
|
|
|
})
|
|
|
}
|