Skip to content

Commit

Permalink
test fixes, reduce one log msg
Browse files Browse the repository at this point in the history
  • Loading branch information
powersj committed Nov 3, 2021
1 parent 020b976 commit 9843e16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion plugins/inputs/cloudwatch/cloudwatch.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ func (c *CloudWatch) Init() error {
// Gather takes in an accumulator and adds the metrics that the Input
// gathers. This is called every "interval".
func (c *CloudWatch) Gather(acc telegraf.Accumulator) error {
c.Log.Debugf("gathering cloudwatch")
filteredMetrics, err := getFilteredMetrics(c)
if err != nil {
return err
Expand Down
3 changes: 3 additions & 0 deletions plugins/inputs/cloudwatch/cloudwatch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ func TestGather(t *testing.T) {
Delay: internalDuration,
Period: internalDuration,
RateLimit: 200,
Log: testutil.Logger{},
}

var acc testutil.Accumulator
Expand Down Expand Up @@ -136,6 +137,7 @@ func TestGather_MultipleNamespaces(t *testing.T) {
Delay: internalDuration,
Period: internalDuration,
RateLimit: 200,
Log: testutil.Logger{},
}

var acc testutil.Accumulator
Expand Down Expand Up @@ -212,6 +214,7 @@ func TestSelectMetrics(t *testing.T) {
Delay: internalDuration,
Period: internalDuration,
RateLimit: 200,
Log: testutil.Logger{},
Metrics: []*Metric{
{
MetricNames: []string{"Latency", "RequestCount"},
Expand Down

0 comments on commit 9843e16

Please sign in to comment.