Hi,
I am using Prometheus CloudWatch Exporter to query EC2 instance CPUUtilization metrics. My config file for the Exporter is as follows:
---
region: us-west-2
role_arn: [My-Role-Arn]
metrics:
- aws_namespace: AWS/EC2
aws_metric_name: CPUUtilization
aws_dimensions: [InstanceId]
aws_tag_select:
resource_type_selection: "ec2:instance"
resource_id_dimension: "InstanceId"
aws_extended_statistics: [p50, p90]
aws_statistics: [Average]
One of the output from Export is like follows:
aws_ec2_cpuutilization_average{job="aws_ec2",instance="",instance_id="i-12345abcde",} 1.33333333341094 1617906240000
Now I want to add the "InstanceType" information in this output for each instance. I checked this information is not under "Tag" for the instance so I can't add it from there.
Is there any way to add this information? Thanks.