Extension of the Metrics library to provide CloudWatch support