awslabs / collectd-cloudwatch

A collectd plugin for sending data to Amazon CloudWatch
MIT License
200 stars 132 forks source link

Flush Interval Variable #8

Open jsmickey opened 8 years ago

jsmickey commented 8 years ago

Problem: Would like to send statistic to Cloudwatch every 5 minutes instead of every minute

Create a variable for _FLUSH_INTERVAL_IN_SECONDS = to be either 60 or 300

collectd-cloudwatch/src/cloudwatch/modules/flusher.py

coolpistachio commented 6 years ago

Also, the confighelper is capping the max value for flush_interval_in_seconds to 60. https://github.com/awslabs/collectd-cloudwatch/blob/3c90d300d978b17d8c7a9fd1005a7db11a5795f4/src/cloudwatch/modules/configuration/confighelper.py#L175

We'd like to be able to configure the flush interval through the config file to publish every 300s instead of 60s. This is not possible with the current implementation.