Skip to content

Commit

Permalink
cloudwatch: add namespace in error message, move to warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeylanzman committed May 9, 2022
1 parent 6dc2b99 commit 88d043a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/inputs/cloudwatch/cloudwatch.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,8 @@ func (c *CloudWatch) fetchNamespaceMetrics() ([]types.Metric, error) {
for {
resp, err := c.client.ListMetrics(context.Background(), params)
if err != nil {
return nil, fmt.Errorf("failed to list metrics with params per namespace: %v", err)
fmt.Printf("failed to list metrics with namespace %s: %v", namespace, err)
break
}

metrics = append(metrics, resp.Metrics...)
Expand Down

0 comments on commit 88d043a

Please sign in to comment.