Menu
Amazon API Gateway
Developer Guide

View API Gateway Metrics in the CloudWatch Console

Metrics are grouped first by the service namespace, and then by the various dimension combinations within each namespace.

To view API Gateway metrics using the CloudWatch console

  1. Open the CloudWatch console at https://console.aws.amazon.com/cloudwatch/.

  2. If necessary, change the region. From the navigation bar, select the region where your AWS resources reside. For more information, see Regions and Endpoints.

  3. In the navigation pane, choose Metrics.

  4. In the All metrics tab, choose API Gatewayy.

  5. To view metrics by stage, choose the By Stage panel. And then select desired APIs and metric names.

  6. To view metrics by specific API, choose theBy Api Name panel. And then select desired APIs and metric names.

To view metrics using the AWS CLI

  1. At a command prompt, use the following command to list metrics:

    Copy
    aws cloudwatch list-metrics --namespace "AWS/ApiGateway"
  2. To view a specific statistics (for example, Average) over a period of time of a 5 minutes intervals, call the following command:

    Copy
    aws cloudwatch get-metric-statistics --namespace AWS/ApiGateway --metric-name Count --start-time 2011-10-03T23:00:00Z --end-time 2017-10-05T23:00:00Z --period 300 --statistics Average