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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인