Public documentation
Documentation indexRead as MarkdownCollect EC2 CPU measurements from CloudWatch
Use a dedicated metrics pipeline to collect the CloudWatch Average statistic
for AWS/EC2 CPUUtilization for selected instances. Corridora displays the
provider measurement in Infrastructure → Cloud systems with the recorded
account, region, instance ID, aggregation period, and configured reporting delay.
EC2 CPU includes provider activity that guest OS measurements may exclude.
EC2 metric definitions
Use Collector Contrib 0.165.0 with the awscloudwatch receiver. The receiver
metrics interface is alpha. Run it with an approved AWS role or credential
provider in the monitored account. Explicit metric queries require
cloudwatch:GetMetricData. Verify the 12-digit account ID against the SDK
identity used by the Collector. For example, use aws sts get-caller-identity --query Account --output text with the same AWS credentials.
Receiver configuration and permissions
Save aws-ec2-collector.yaml. Set
CORRIDORA_AWS_REGION, CORRIDORA_AWS_ACCOUNT_ID, CORRIDORA_EC2_INSTANCE_ID, and the
common export settings. Validate the configuration with
otelcol-contrib validate --config=aws-ec2-collector.yaml before starting the
Collector. The example uses a five-minute period and a ten-minute query delay.
If you change either, update its corresponding resource attribute.
Open Cloud systems after the receiver has exported at least two points. Verify
the Region and instance match CloudWatch, the statistic is Average, and the
recorded timestamps and values agree for the same interval. If the resource is
absent, check AWS authorization, account identity, instance ID, Collector logs,
and the selected project/services and time range. Use a time range that includes
the configured reporting delay. CloudWatch delivery and request costs depend on
the AWS account and selected metrics. This example queries only the named instance.
Keep this pipeline separate from host or application telemetry. Add host and request identity through their own collectors when those relationships are needed. The EC2 measurement alone describes CPU use for the configured source.