Skip to content

Commit

Permalink
not sure atm
Browse files Browse the repository at this point in the history
  • Loading branch information
kgeckhart committed May 31, 2024
1 parent 5718111 commit a6c2b2e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pkg/job/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package job
import (
"context"
"errors"
"fmt"
"strings"
"sync"

"github.com/nerdswords/yet-another-cloudwatch-exporter/pkg/clients/cloudwatch"
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit a6c2b2e

Please sign in to comment.