Api Gateway does not generate metrics on CloudWatch

0

We created some API Gateway resources of type AWS::Serverless::Api with CloudFormation in the same AWS account, where all have the same value of ApiName and with the MethodSetting parameter we enable the metrics for all paths that have the different API Gateway.

After creating the API Gateway resource in the Amazon console and after a few days of running requests on the API, we only see the metrics 4XXError, 5XXError, Count, Latencies and Integration Latencies corresponding to a single API Gateway, the rest of the API Gateway did not generate any metrics in CloudWatch.

At this point, we decided to assign a different API name to each API Gateway. However, these API Gateways still do not generate metrics in CloudWatch.

Any idea about the problem we are having?

1 回答
0
已接受的回答

Hello.
Have you run an API against an API Gateway that is not showing CloudWatch metrics?
If you are not running the API, I suspect that metrics will not be created.

profile picture
专家
已回答 9 个月前
  • Thanks for the reply. I would like to tell you that we have configured the route 53 health check resource that monitors one of the endpoints of the API Gateway, so requests to the API are constantly being generated. We are also making requests manually.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则