Change max query size for GetMetricData API to 500 and add RecentlyActive config#33105
Conversation
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
|
This pull request is now in conflicts. Could you fix it? 🙏 |
|
CI error: This is caused by |
|
|
What does this PR do?
This PR is to change max query size for GetMetricData API from 100 to 500.
500 is the maximum metrics for a single API request:
A GetMetricData operation that does not include a query can retrieve as many as 500 different metrics in a single request, with a total of as many as 100,800 data points.AWS documentation link: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html
This PR also adds
RecentlyActiveconfig parameter intoListMetricsAPI call to get recent metrics instead of all.This is the first step to help improve performance for the CloudWatch metricset, please see #33195 for more details.
Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.