From 5a30c9816ef0312c628b9aa00844125b945f1664 Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Wed, 22 Apr 2020 15:53:01 -0700 Subject: [PATCH] Use new higher per request limit for cloudwatch GetMetricData (#7335) --- plugins/inputs/cloudwatch/cloudwatch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inputs/cloudwatch/cloudwatch.go b/plugins/inputs/cloudwatch/cloudwatch.go index be4ae3700..3148e2c75 100644 --- a/plugins/inputs/cloudwatch/cloudwatch.go +++ b/plugins/inputs/cloudwatch/cloudwatch.go @@ -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) {