Skip to content

Commit 4fcdbc6

Browse files
authored
Don't add promrus hook (#754)
We have overlapping functionality in cortex/pkg/util/log.go
1 parent df3d3ce commit 4fcdbc6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

cmd/distributor/main.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"github.com/opentracing-contrib/go-stdlib/nethttp"
1010
"github.com/opentracing/opentracing-go"
1111
"github.com/prometheus/client_golang/prometheus"
12-
"github.com/prometheus/common/log"
1312
"google.golang.org/grpc"
1413

1514
"github.com/weaveworks/common/middleware"
@@ -18,7 +17,6 @@ import (
1817
"github.com/weaveworks/cortex/pkg/distributor"
1918
"github.com/weaveworks/cortex/pkg/ring"
2019
"github.com/weaveworks/cortex/pkg/util"
21-
"github.com/weaveworks/promrus"
2220
)
2321

2422
func main() {
@@ -60,8 +58,6 @@ func main() {
6058
trace := tracing.New(jaegerAgentHost, "distributor")
6159
defer trace.Close()
6260

63-
log.AddHook(promrus.MustNewPrometheusHook())
64-
6561
r, err := ring.New(ringConfig)
6662
if err != nil {
6763
level.Error(util.Logger).Log("msg", "error initializing ring", "err", err)

0 commit comments

Comments
 (0)