Use new higher per request limit for cloudwatch GetMetricData (#7335)
This commit is contained in:
parent
552ead3af5
commit
5a30c9816e
|
@ -212,7 +212,7 @@ func (c *CloudWatch) Gather(acc telegraf.Accumulator) error {
|
||||||
results := []*cloudwatch.MetricDataResult{}
|
results := []*cloudwatch.MetricDataResult{}
|
||||||
|
|
||||||
// 100 is the maximum number of metric data queries a `GetMetricData` request can contain.
|
// 100 is the maximum number of metric data queries a `GetMetricData` request can contain.
|
||||||
batchSize := 100
|
batchSize := 500
|
||||||
var batches [][]*cloudwatch.MetricDataQuery
|
var batches [][]*cloudwatch.MetricDataQuery
|
||||||
|
|
||||||
for batchSize < len(queries) {
|
for batchSize < len(queries) {
|
||||||
|
|
Loading…
Reference in New Issue