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