Update docs on Cloudwatch. Set default period to 5m. (#2000)

This commit is contained in:
John Engelman 2016-11-07 06:14:04 -06:00 committed by Cameron Sparr
parent e84b356a12
commit 5d3850c44e
3 changed files with 28 additions and 15 deletions

View File

@ -641,14 +641,14 @@
# #shared_credential_file = "" # #shared_credential_file = ""
# #
# ## Requested CloudWatch aggregation Period (required - must be a multiple of 60s) # ## Requested CloudWatch aggregation Period (required - must be a multiple of 60s)
# period = "1m" # period = "5m"
# #
# ## Collection Delay (required - must account for metrics availability via CloudWatch API) # ## Collection Delay (required - must account for metrics availability via CloudWatch API)
# delay = "1m" # delay = "5m"
# #
# ## Recomended: use metric 'interval' that is a multiple of 'period' to avoid # ## Recomended: use metric 'interval' that is a multiple of 'period' to avoid
# ## gaps or overlap in pulled data # ## gaps or overlap in pulled data
# interval = "1m" # interval = "5m"
# #
# ## Configure the TTL for the internal cache of metrics. # ## Configure the TTL for the internal cache of metrics.
# ## Defaults to 1 hr if not specified # ## Defaults to 1 hr if not specified
@ -1979,4 +1979,3 @@
# #
# [inputs.webhooks.rollbar] # [inputs.webhooks.rollbar]
# path = "/rollbar" # path = "/rollbar"

View File

@ -20,16 +20,23 @@ API endpoint. In the following order the plugin will attempt to authenticate.
## Amazon Region (required) ## Amazon Region (required)
region = "us-east-1" region = "us-east-1"
# The minimum period for Cloudwatch metrics is 1 minute (60s). However not all
# metrics are made available to the 1 minute period. Some are collected at
# 3 minute and 5 minutes intervals. See https://aws.amazon.com/cloudwatch/faqs/#monitoring.
# Note that if a period is configured that is smaller than the minimum for a
# particular metric, that metric will not be returned by the Cloudwatch API
# and will not be collected by Telegraf.
#
## Requested CloudWatch aggregation Period (required - must be a multiple of 60s) ## Requested CloudWatch aggregation Period (required - must be a multiple of 60s)
period = "1m" period = "5m"
## Collection Delay (required - must account for metrics availability via CloudWatch API) ## Collection Delay (required - must account for metrics availability via CloudWatch API)
delay = "1m" delay = "5m"
## Override global run interval (optional - defaults to global interval) ## Override global run interval (optional - defaults to global interval)
## Recomended: use metric 'interval' that is a multiple of 'period' to avoid ## Recomended: use metric 'interval' that is a multiple of 'period' to avoid
## gaps or overlap in pulled data ## gaps or overlap in pulled data
interval = "1m" interval = "5m"
## Metric Statistic Namespace (required) ## Metric Statistic Namespace (required)
namespace = "AWS/ELB" namespace = "AWS/ELB"
@ -71,16 +78,16 @@ wildcard dimension is ignored.
Example: Example:
``` ```
[[inputs.cloudwatch.metrics]] [[inputs.cloudwatch.metrics]]
names = ['Latency'] names = ["Latency"]
## Dimension filters for Metric (optional) ## Dimension filters for Metric (optional)
[[inputs.cloudwatch.metrics.dimensions]] [[inputs.cloudwatch.metrics.dimensions]]
name = 'LoadBalancerName' name = "LoadBalancerName"
value = 'p-example' value = "p-example"
[[inputs.cloudwatch.metrics.dimensions]] [[inputs.cloudwatch.metrics.dimensions]]
name = 'AvailabilityZone' name = "AvailabilityZone"
value = '*' value = "*"
``` ```
If the following ELBs are available: If the following ELBs are available:

View File

@ -80,15 +80,22 @@ func (c *CloudWatch) SampleConfig() string {
#profile = "" #profile = ""
#shared_credential_file = "" #shared_credential_file = ""
# The minimum period for Cloudwatch metrics is 1 minute (60s). However not all
# metrics are made available to the 1 minute period. Some are collected at
# 3 minute and 5 minutes intervals. See https://aws.amazon.com/cloudwatch/faqs/#monitoring.
# Note that if a period is configured that is smaller than the minimum for a
# particular metric, that metric will not be returned by the Cloudwatch API
# and will not be collected by Telegraf.
#
## Requested CloudWatch aggregation Period (required - must be a multiple of 60s) ## Requested CloudWatch aggregation Period (required - must be a multiple of 60s)
period = "1m" period = "5m"
## Collection Delay (required - must account for metrics availability via CloudWatch API) ## Collection Delay (required - must account for metrics availability via CloudWatch API)
delay = "1m" delay = "5m"
## Recomended: use metric 'interval' that is a multiple of 'period' to avoid ## Recomended: use metric 'interval' that is a multiple of 'period' to avoid
## gaps or overlap in pulled data ## gaps or overlap in pulled data
interval = "1m" interval = "5m"
## Configure the TTL for the internal cache of metrics. ## Configure the TTL for the internal cache of metrics.
## Defaults to 1 hr if not specified ## Defaults to 1 hr if not specified