From f8206c64929e103a56ab58dc1497d43fdfcdb4ac Mon Sep 17 00:00:00 2001 From: Robert Fratto Date: Tue, 3 Mar 2020 15:02:05 -0500 Subject: [PATCH] remove debug messages for target filterer it's a lot of messages, even with debug logging :) --- pkg/prometheus/host_filter.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkg/prometheus/host_filter.go b/pkg/prometheus/host_filter.go index 05a4f58c0eba..a0b63eae6d28 100644 --- a/pkg/prometheus/host_filter.go +++ b/pkg/prometheus/host_filter.go @@ -4,8 +4,6 @@ import ( "context" "net" - "github.com/cortexproject/cortex/pkg/util" - "github.com/go-kit/kit/log/level" "github.com/prometheus/common/model" "github.com/prometheus/prometheus/discovery/targetgroup" "github.com/prometheus/prometheus/pkg/labels" @@ -102,11 +100,7 @@ func FilterGroups(in DiscoveredGroups, host string) DiscoveredGroups { for _, target := range group.Targets { if !shouldFilterTarget(target, group.Labels, host) { - level.Debug(util.Logger).Log("msg", "including target", "target_labels", target.String(), "common_labels", group.Labels.String(), "host", host) - newGroup.Targets = append(newGroup.Targets, target) - } else { - level.Debug(util.Logger).Log("msg", "ignoring target", "target_labels", target.String(), "common_labels", group.Labels.String(), "host", host) } }