Questions about request statistics in CloudWatch

0

Please tell me about request statistics in CloudWatch.

  1. I want to filter the total number of requests by source IP or API key and get a breakdown of the number of requests.
    Can I specify filter conditions for metrics?

  2. Can I get statistics on the number of error requests for specific status codes like '302', '403'?
    Also, can I get statistics on error status codes from API Gateway and error status codes from backend?

  3. I want to get statistics on the number of requests by status code.
    So, I have to set the x-axis to the status code and the y-axis to the number of requests.
    Can I change the x-axis to a dimension other than date range?

akazaki
已提问 4 年前344 查看次数
1 回答
0

Hello:

Unfortunately none of the features you are requesting exist with API Gateway metrics out of the box, but can be achieved through the use of API Gateway access logs and metrics filters.

https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-logging.html
https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/MonitoringLogData.html

Regards,
Bob

专家
已回答 4 年前

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

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

回答问题的准则