Unable to fetch the cloudmetric for ALB using the clowdwatch_exporter

246 views
Skip to first unread message

psreej...@gmail.com

unread,
Dec 21, 2017, 7:18:12 AM12/21/17
to Prometheus Developers
Hello there,

I am trying to fetch the ALB metric from the cloudwatch using the cloudwatch exporter in a container. PLease find the command given below to run the container :

$ docker run -d -p 9106:9106 -v `pwd`/config.yml:/config/config.yml prom/cloudwatch-exporter

Please find the config entry given below:

---
region: us-east-1
metrics:
- aws_namespace: AWS/ApplicationELB
aws_metric_name: HealthyHostCount
aws_dimensions: [AvailabilityZone, LoadBalancer, TargetGroup]
aws_statistics: [Average]

- aws_namespace: AWS/ApplicationELB
aws_metric_name: UnHealthyHostCount
aws_dimensions: [AvailabilityZone, LoadBalancer, TargetGroup]
aws_statistics: [Average]

- aws_namespace: AWS/ApplicationELB
aws_metric_name: HTTPCode_ELB_4XX_Count
aws_dimensions: [AvailabilityZone, LoadBalancer]
aws_statistics: [Average]

- aws_namespace: AWS/ApplicationELB
aws_metric_name: HTTPCode_ELB_5XX_Count
aws_dimensions: [AvailabilityZone, LoadBalancer]
aws_statistics: [Average]

- aws_namespace: AWS/ApplicationELB
aws_metric_name: TargetConnectionErrorCount
aws_dimensions: [AvailabilityZone, LoadBalancer, TargetGroup]
aws_statistics: [Maximum, Sum]


Please find the prometheus entry given below:

scrape_configs:
- job_name: 'Devops-cloudwatch-exporter'
scrape_interval: 10s
scrape_timeout: 5s
ec2_sd_configs:
- region: us-east-1
refresh_interval: 30s
port: 9106
relabel_configs:
- source_labels: [__meta_ec2_tag_Name]
regex: Devops-Service-Cluster-ECSInstance
action: keep
- source_labels: [__meta_ec2_instance_id]
target_label: instance
- source_labels: [__meta_ec2_instance_state]
target_label: instance

I am bale to fetch the ELB metrics but not the ALB, please let me know if i am missing anything from the config from my files

Thanks
Sreejith

Message has been deleted

psreej...@gmail.com

unread,
Dec 26, 2017, 1:31:47 AM12/26/17
to Prometheus Developers
@all

I have managed to get the metrics on the cloudwatch but not able to get listed on the promethes search bar.

Also i am getting the error on the target page for cloudwatch target saying "context deadline exceeded" . Please do let me know if i am missing anything here

Thanks
Sreejith

Reply all
Reply to author
Forward
0 new messages