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.
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/825acfe1-aab1-4b5c-b7ad-20db68b4748bn%40googlegroups.com.