API Gateway metrics are not being scrapped by prometheus

43 views
Skip to first unread message

Anoop

unread,
Jun 9, 2020, 1:56:17 PM6/9/20
to Prometheus Users
Hi,

I am using following configurations for cloudwatch exporter to get API Gateway metrics. However, I am not able to see the metrics in prometheus. Could someone please help on this? Please let me know, if there is any issue with below configuration.

region: us-west-2
delay_seconds: 600
mappings:
 
- name: AWS/APIGateway
   
id_field: ApiName
   
lookup_url: aws/apigateway
   


metrics:
 
- aws_namespace: AWS/APIGateway
   
aws_metric_name: 4XXError
   
aws_dimensions: [ApiName, Method, Resource, Stage]
   
aws_statistics: [Average, Min, Max, Sum]

 
- aws_namespace: AWS/APIGateway
   
aws_metric_name: 5XXError
   
aws_dimensions: [ApiName, Method, Resource, Stage]
   
aws_statistics: [Average, Min, Max, Sum]

 
- aws_namespace: AWS/APIGateway
   
aws_metric_name: CacheHitCount
   
aws_dimensions: [ApiName, Method, Resource, Stage]
   
aws_statistics: [Average, Min, Max, Sum]
   
 
- aws_namespace: AWS/APIGateway
   
aws_metric_name: CacheMissCount
   
aws_dimensions: [ApiName, Method, Resource, Stage]
   
aws_statistics: [Average, Min, Max, Sum]

 
- aws_namespace: AWS/APIGateway
   
aws_metric_name: Count
   
aws_dimensions: [ApiName, Method, Resource, Stage]
   
aws_statistics: [Average, Min, Max, Sum]

 
- aws_namespace: AWS/APIGateway
   
aws_metric_name: IntegrationLatency
   
aws_dimensions: [ApiName, Method, Resource, Stage]
   
aws_statistics: [Average, Min, Max, Sum]
   
 
- aws_namespace: AWS/APIGateway
   
aws_metric_name: Latency
   
aws_dimensions: [ApiName, Method, Resource, Stage]
   
aws_statistics: [Average, Min, Max, Sum]

Thanks,

Reply all
Reply to author
Forward
0 new messages