-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AWS Cloudwatch] Changed module to call ListMetrics API only once per region #34055
Conversation
…ly once per region, instead of per AWS namespace
This pull request doesn't have a |
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please see my comment
e05b35c
to
7055a16
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
… region (#34055) * Changed cloudwatch module to call ListMetrics API only once per region, instead of per AWS namespace * Refactored filterListMetricsOutput method
What does this PR do?
This PR modifies the AWS Cloudwatch module to call ListMetrics API only once per region, instead of once per namespace. Any namespaces that are part of ListMetrics API's response, but not configured to be queried, are removed in code.
Why is it important?
ListMetrics API is billed per number of calls, so reducing the total number of calls lead to cost savings for users of the AWS Cloudwatch module.
References:
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Related issues