Skip to content

Commit

Permalink
fix(inputs.cloudwatch): Add accounts when enabled (#15440)
Browse files Browse the repository at this point in the history
  • Loading branch information
powersj authored Jun 3, 2024
1 parent 0a7aa30 commit 9eeb4a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/inputs/cloudwatch/cloudwatch.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@ func getFilteredMetrics(c *CloudWatch) ([]filteredMetric, error) {
})
}
}
if c.IncludeLinkedAccounts {
_, allAccounts := c.fetchNamespaceMetrics()
accounts = append(accounts, allAccounts...)
}
} else {
allMetrics, allAccounts := c.fetchNamespaceMetrics()

Expand Down

0 comments on commit 9eeb4a8

Please sign in to comment.