Skip to content

API shows up in Cloudwatch metrics under wrong name

0

We have an API Gateway API named proxy-prod. However, Cloudwatch shows no metrics for that API, instead showing metrics for just proxy. Proxy was the API's old name before we started adding the environment to the API names. However, only proxy-prod shows up in the list in the API Gateway console. Proxy is nowhere to be found.

Has anyone seen a similar issue?

1 Answer
0

Hello,

CloudWatch metrics for API Gateway are typically organized by Dimensions such as ApiName, Method, Resource, Stage. Ensure that you have selected the right dimension while viewing metrics in CloudWatch Metrics console.

[+] https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-metrics-and-dimensions.html#api-gateway-metricdimensions

=> Verify that the API ID hasn't changed. Even if you renamed the API, the underlying API ID should remain the same. CloudWatch uses this ID for metric association.

=> Ensure you're looking at the correct time range when viewing the metrics.

=> You can use the AWS CLI to list the metrics for your API directly. This might provide more insight into how the metrics are being stored and associated with your API.

[+] https://docs.aws.amazon.com/apigateway/latest/developerguide/metrics_dimensions_view_in_cloud_watch.html

[+] https://docs.aws.amazon.com/apigateway/latest/developerguide/monitoring-cloudwatch.html

For detailed investigation, we would need to check the resources in your account. If you still have queries regarding this, I would recommend you to reach out to our support team by opening a support case with all the resource details (such as API details and screenshot of the issue), and we will investigate the issue further.

Thank you for your interest in re:Post community.

answered 2 years ago

AWS
SUPPORT ENGINEER

revised 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.