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
asked 4 years ago332 views
1 Answer
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

EXPERT
answered 4 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.

Guidelines for Answering Questions