Support StatisticValues in cloudwatch output plugin (#4364)

This commit is contained in:
david7482
2018-08-02 06:43:17 +08:00
committed by Greg
parent 66528354a5
commit 199841a820
3 changed files with 286 additions and 55 deletions

View File

@@ -36,3 +36,13 @@ Examples include but are not limited to:
### namespace
The namespace used for AWS CloudWatch metrics.
### write_statistics
If you have a large amount of metrics, you should consider to send statistic
values instead of raw metrics which could not only improve performance but
also save AWS API cost. If enable this flag, this plugin would parse the required
[CloudWatch statistic fields](https://docs.aws.amazon.com/sdk-for-go/api/service/cloudwatch/#StatisticSet)
(count, min, max, and sum) and send them to CloudWatch. You could use `basicstats`
aggregator to calculate those fields. If not all statistic fields are available,
all fields would still be sent as raw metrics.