logstash-plugins / logstash-input-cloudwatch

A Logstash input to pull events from the Amazon Web Services CloudWatch API
Apache License 2.0
43 stars 27 forks source link

Support for high resolution metrics #24

Open phil-lavin opened 7 years ago

phil-lavin commented 7 years ago

As of last week, CloudWatch added support for high resolution metrics: https://aws.amazon.com/about-aws/whats-new/2017/07/amazon-cloudwatch-introduces-high-resolution-custom-metrics-and-alarms/

Previously, the resolution was 1 data point per minute. Now you can have 1 data point per second.

The way this is done is to specify a StorageResolution value of 1 in the CloudWatch PutMetricData API call. There are only currently 2 valid values for this setting - 1 or 60. It will default to 60 if not specified.

Obviously you don't have to feed in data every second, if you set a StorageResolution value of 1. You can freely feed in, for example, every 10 seconds and 6 points per minute will show in CloudWatch.

It would be great if logstash-input-cloudwatch supported high resolution metrics.

phil-lavin commented 7 years ago

This relies on upgrading the SDK to >= v2.10.8