influxdata/telegraf

CloudWatch Metrics Input Plugin to Support Percentile Based Metrics

Open

#7,951 opened on Aug 6, 2020

View on GitHub
 (6 comments) (1 reaction) (0 assignees)Go (4,161 forks)batch import
area/awscloudfeature requesthelp wantedsize/m

Repository metrics

Stars
 (9,892 stars)
PR merge metrics
 (Avg merge 2d 12h) (136 merged PRs in 30d)

Description

Feature Request

Opening a feature request kicks off a discussion.

Proposal:

The CloudWatch GetMetricData API call has the capability to use an Expression to allow for gathering pXX.XX (IE p95) statistics metrics.

Current behavior:

Based on this function, only 'minimum, maximum, sum, samplecount, average' are supported metric values. There is no extendedmetrics available which would be used by extended metrics.

Desired behavior:

Allow for pXX.XX to be valid metrics to be gathered by the CloudWatch input plugin.

Use case:

For statistical analysis, it is often better to throw out outliers of a dataset to keep from distracting from underlying trends. Using p95 allows for a higher confidence interval in what real "max" usage is, p5 similarly for "minimum" usage, and p50 for "average" usage. This allows for a statistics_input object to contain arbitrary pXX.XX values and return them from the GetMetricData API. This is suggested as an additional option, rather than complete replacement, to allow for users of this plugin to choose which statistic set they prefer.

Contributor guide