Skip to content

Commit 426182b

Browse files
AntoineAugustidanielnelson
authored andcommitted
Update default value for Cloudwatch rate limit (#2520)
1 parent 7a5d857 commit 426182b

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ be deprecated eventually.
7979
- [#2483](https://github.com/influxdata/telegraf/pull/2483): Fix win_perf_counters capping values at 100.
8080
- [#2498](https://github.com/influxdata/telegraf/pull/2498): Exporting Ipmi.Path to be set by config.
8181
- [#2500](https://github.com/influxdata/telegraf/pull/2500): Remove warning if parse empty content
82+
- [#2520](https://github.com/influxdata/telegraf/pull/2520): Update default value for Cloudwatch rate limit
8283
- [#2513](https://github.com/influxdata/telegraf/issues/2513): create /etc/telegraf/telegraf.d directory in tarball.
8384

8485
## v1.2.1 [2017-02-01]

plugins/inputs/cloudwatch/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@ API endpoint. In the following order the plugin will attempt to authenticate.
4242
namespace = "AWS/ELB"
4343

4444
## Maximum requests per second. Note that the global default AWS rate limit is
45-
## 10 reqs/sec, so if you define multiple namespaces, these should add up to a
46-
## maximum of 10. Optional - default value is 10.
47-
ratelimit = 10
45+
## 400 reqs/sec, so if you define multiple namespaces, these should add up to a
46+
## maximum of 400. Optional - default value is 200.
47+
## See http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_limits.html
48+
ratelimit = 200
4849

4950
## Metrics to Pull (optional)
5051
## Defaults to all Metrics in Namespace if nothing is provided

plugins/inputs/cloudwatch/cloudwatch.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,10 @@ func (c *CloudWatch) SampleConfig() string {
105105
namespace = "AWS/ELB"
106106
107107
## Maximum requests per second. Note that the global default AWS rate limit is
108-
## 10 reqs/sec, so if you define multiple namespaces, these should add up to a
109-
## maximum of 10. Optional - default value is 10.
110-
ratelimit = 10
108+
## 400 reqs/sec, so if you define multiple namespaces, these should add up to a
109+
## maximum of 400. Optional - default value is 200.
110+
## See http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_limits.html
111+
ratelimit = 200
111112
112113
## Metrics to Pull (optional)
113114
## Defaults to all Metrics in Namespace if nothing is provided
@@ -214,7 +215,7 @@ func init() {
214215
ttl, _ := time.ParseDuration("1hr")
215216
return &CloudWatch{
216217
CacheTTL: internal.Duration{Duration: ttl},
217-
RateLimit: 10,
218+
RateLimit: 200,
218219
}
219220
})
220221
}

plugins/inputs/cloudwatch/cloudwatch_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func TestGather(t *testing.T) {
5858
Namespace: "AWS/ELB",
5959
Delay: internalDuration,
6060
Period: internalDuration,
61-
RateLimit: 10,
61+
RateLimit: 200,
6262
}
6363

6464
var acc testutil.Accumulator
@@ -146,7 +146,7 @@ func TestSelectMetrics(t *testing.T) {
146146
Namespace: "AWS/ELB",
147147
Delay: internalDuration,
148148
Period: internalDuration,
149-
RateLimit: 10,
149+
RateLimit: 200,
150150
Metrics: []*Metric{
151151
&Metric{
152152
MetricNames: []string{"Latency", "RequestCount"},

0 commit comments

Comments
 (0)