diff --git a/pkg/job/discovery.go b/pkg/job/discovery.go index da3b46d2..ac640320 100644 --- a/pkg/job/discovery.go +++ b/pkg/job/discovery.go @@ -3,8 +3,6 @@ package job import ( "context" "errors" - "fmt" - "strings" "sync" "github.com/nerdswords/yet-another-cloudwatch-exporter/pkg/clients/cloudwatch" @@ -134,13 +132,6 @@ func getFilteredMetricDatas( matchedResource, skip := assoc.AssociateMetricToResource(cwMetric) if skip { - if logger.IsDebugEnabled() { - dimensions := make([]string, 0, len(cwMetric.Dimensions)) - for _, dim := range cwMetric.Dimensions { - dimensions = append(dimensions, fmt.Sprintf("%s=%s", dim.Name, dim.Value)) - } - logger.Debug("skipping metric unmatched by associator", "metric", m.Name, "dimensions", strings.Join(dimensions, ",")) - } continue }