ramn / metrics_cloudwatch

CloudWatch emitter for the metrics crate
7 stars 9 forks source link

fix: Display averages for count metrics #17

Closed Marwes closed 4 years ago

Marwes commented 4 years ago

Using StatisticSet for count metrics in the current way causes the average to always be 1 (since sum / sample_count = 1).

As we aren't really interested how many counter! calls we did we just "group them together" into one per put_metric_data call.