Skip to content

Commit

Permalink
remove debug messages for target filterer
Browse files Browse the repository at this point in the history
it's a lot of messages, even with debug logging :)
  • Loading branch information
rfratto committed Mar 3, 2020
1 parent 9247943 commit f8206c6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/prometheus/host_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
}
}

Expand Down

0 comments on commit f8206c6

Please sign in to comment.