Collects metrics for CloudWatch