blacklocus / metrics-cloudwatch

A reporter for codahale metrics to Amazon CloudWatch
Apache License 2.0
61 stars 27 forks source link

How to report methods before shutdown? #18

Open landon9720 opened 8 years ago

landon9720 commented 8 years ago

My app is set with a reporting interval of 1 hour. In order to reduce the potential for lost metric data in case of a server shutdown, I would like to configure metrics-cloudwatch to report metrics on shutdown. Is there a recommendation on how to implement this? Thanks!