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
demandé il y a 4 ans344 vues
1 réponse
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
répondu il y a 4 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions