Refactored the CloudWatch metrics fetching #192