How does AWS CloudWatch collect metrics?
AWS CloudWatch collects metrics directly from AWS services, such as EC2 instances or custom sources, using the CloudWatch API. Metrics are typically collected at one-minute intervals by default, but this can be adjusted.AWS CloudWatch collects metrics from AWS services, custom applications, logs, and through API calls.