View CloudWatch metrics with the API dashboard in API Gateway
You can use the API dashboard in the API Gateway Console to display the CloudWatch metrics of your deployed API in API Gateway. These are shown as a summary of API activity over time.
Prerequisites
-
You must have an API created in API Gateway. Follow the instructions in Develop REST APIs in API Gateway.
-
You must have the API deployed at least once. Follow the instructions in Deploy REST APIs in API Gateway.
Examine API activities in the dashboard
Sign in to the API Gateway console at https://console.aws.amazon.com/apigateway
. -
Choose an API.
-
In the main navigation pane, choose Dashboard.
-
For Stage, choose the desired stage.
-
Choose Date range to specify a range of dates.
-
Refresh, if needed, and view individual metrics displayed in separate graphs titled API calls, Latency, Integration latency, Latency, 4xx error and 5xx error.
Tip
To examine method-level CloudWatch metrics, make sure that you have enabled CloudWatch Logs on a method level. For more information about how to set up method-level logging, see Override stage-level settings.