Technofy / cloudwatch_exporter

A CloudWatch exporter for Prometheus coded in Go, with multi-region support
Apache License 2.0
78 stars 140 forks source link

Please add support for Cloudwatch extended statistics #13

Closed tokyowizard closed 4 years ago

tokyowizard commented 6 years ago

Please add support for aws_extended_statistics as done in https://github.com/prometheus/cloudwatch_exporter/pull/57

We're trying to get the TargetResponseTime metrics as described in the docs and as noted:

Statistics: The most useful statistics are Average and pNN.NN (percentiles).

So I tried:

      - aws_namespace: 'AWS/ApplicationELB'
        aws_metric_name: 'TargetResponseTime'
        aws_statistics: ['p90', 'p95', 'p99']
        aws_dimensions: ['TargetGroup', 'LoadBalancer']
        aws_dimensions_select_regex:
          TargetGroup: .*
          LoadBalancer: app/production-.*

and just aws_statistics: ['p95']:

      - aws_namespace: 'AWS/ApplicationELB'
        aws_metric_name: 'TargetResponseTime'
        aws_statistics: ['p95']
        aws_dimensions: ['TargetGroup', 'LoadBalancer']
        aws_dimensions_select_regex:
          TargetGroup: .*
          LoadBalancer: app/production-.*

But both returns this error in the logs:

Oct 09 04:32:14 REDACTED cloudwatch_exporter[13161]: InvalidParameterValue: The parameter Statistics.member.1 must be a value in the set [ Minimum, Maximum, Average, SampleCount, Sum ].
Oct 09 04:32:14 REDACTED cloudwatch_exporter[13161]:         status code: 400, request id: REDACTED