Use new higher per request limit for cloudwatch GetMetricData (#7335)

This commit is contained in:
Daniel Nelson 2020-04-22 15:53:01 -07:00 committed by GitHub
parent 552ead3af5
commit 5a30c9816e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ func (c *CloudWatch) Gather(acc telegraf.Accumulator) error {
results := []*cloudwatch.MetricDataResult{}
// 100 is the maximum number of metric data queries a `GetMetricData` request can contain.
batchSize := 100
batchSize := 500
var batches [][]*cloudwatch.MetricDataQuery
for batchSize < len(queries) {