

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 使用 API Gateway 中的 API 儀表板檢視 CloudWatch 指標
<a name="how-to-api-dashboard"></a>

您可以使用 API Gateway 主控台的 API 儀表板來顯示在 API Gateway 中已部署 API 的 CloudWatch 指標。這些會顯示為 API 活動在一段時間內的摘要。

**Topics**
+ [先決條件](#how-to-api-dashboard-prerequisites)
+ [檢查儀表板中的 API 活動](#how-to-api-dashboard-console)

## 先決條件
<a name="how-to-api-dashboard-prerequisites"></a>

1. 您必須擁有在 API Gateway 中建立的 API。請遵循中的說明進行[在 APIs Gateway 中開發 REST API](rest-api-develop.md)

1. 您必須至少已部署一次 API。請遵循中的說明進行[在 API Gateway 中部署 REST API](how-to-deploy-api.md)

## 檢查儀表板中的 API 活動
<a name="how-to-api-dashboard-console"></a>

1. 在以下網址登入 API Gateway 主控台：[https://console.aws.amazon.com/apigateway](https://console.aws.amazon.com/apigateway)。

1. 選擇一個 API。

1. 在主導覽窗格中，選擇**儀表板**。

1. 針對**階段**，選擇所需的階段。

1. 選擇**日期範圍**以指定日期的範圍。

1. 重新整理 (如需要) 並檢視個別圖形中顯示的個別指標，圖形的標題包括 **API 呼叫**、**延遲**、**整合延遲**、**延遲**、**4xx 錯誤**和 **5xx 錯誤**。
**提示**  
若要檢查方法層級的 CloudWatch 指標，請確定您已在方法層級啟用 CloudWatch Logs。如需設定方法層級記錄的詳細資訊，請參閱[覆寫階段層級設定](set-up-stages.md#how-to-method-override)。