

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

# 檢視和監控 Amazon RDS 零 ETL 整合
<a name="zero-etl.describingmonitoring"></a>

您可以檢視 Amazon RDS 零 ETL 整合的詳細資訊，以查看其組態資訊和目前狀態。您也可以透過在 Amazon Redshift 中查詢特定系統檢視來監控整合的狀態。此外，Amazon Redshift 會將某些與整合相關的指標發佈到 Amazon CloudWatch，您可以在 Amazon Redshift 主控台中檢視這些指標。

**Topics**
+ [檢視整合](#zero-etl.describing)
+ [使用 Amazon Redshift 的系統資料表監控整合](#zero-etl.monitoring)
+ [針對 Amazon Redshift 監控與 Amazon EventBridge 的整合](#zero-etl.eventbridge)

## 檢視整合
<a name="zero-etl.describing"></a>

您可以使用 AWS 管理主控台、 AWS CLI或 RDS API 檢視 Amazon RDS Aurora零 ETL 整合。

### 主控台
<a name="zero-etl.describing-console"></a>

**檢視零 ETL 整合的詳細資訊**

1. 登入 AWS 管理主控台 ，並在 [https://console.aws.amazon.com/rds/](https://console.aws.amazon.com/rds/)：// 開啟 Amazon RDS 主控台。

1. 從左側導覽窗格中，選擇**零 ETL 整合**。

1. 選取整合以檢視其詳細資訊，例如其來源資料庫和目標資料倉儲。  
![\[關於零 ETL 整合的詳細資訊\]](http://docs.aws.amazon.com/zh_tw/AmazonRDS/latest/UserGuide/images/zero-etl-integration-view.png)

整合可以具有下列狀態：
+ `Creating` – 正在建立整合。
+ `Active` – 整合正在將交易資料傳送至目標資料倉儲。
+ `Syncing` – 整合遇到可復原的錯誤，且正在重新植入資料。在完成重新同步之前，受影響的資料表無法進行查詢。
+ `Needs attention` – 整合發生事件或錯誤，需要手動介入才能解決此問題。若要修正問題，請遵循整合詳細資訊頁面上錯誤訊息中的指示。
+ `Failed` – 整合發生無法復原的事件或無法修正的錯誤。您必須刪除並重新建立整合。
+ `Deleting` – 正在刪除整合。

### AWS CLI
<a name="zero-etl.describing-cli"></a>

若要使用 檢視目前帳戶中的所有零 ETL 整合 AWS CLI，請使用 [describe-integrations](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-integrations.html) 命令並指定 `--integration-identifier`選項。

**Example**  
針對 Linux、macOS 或 Unix：  

```
aws rds describe-integrations \
    --integration-identifier ee605691-6c47-48e8-8622-83f99b1af374
```
在 Windows 中：  

```
aws rds describe-integrations ^
    --integration-identifier ee605691-6c47-48e8-8622-83f99b1af374
```

### RDS API
<a name="zero-etl.describing-api"></a>

若要使用 Amazon RDS API 檢視零 ETL 整合，請搭配 `IntegrationIdentifier` 參數使用 [https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeIntegrations.html](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeIntegrations.html) 操作：

## 使用 Amazon Redshift 的系統資料表監控整合
<a name="zero-etl.monitoring"></a>

Amazon Redshift 具有系統資料表和檢視，其中包含系統如何運作的相關資訊。您可以使用查詢任何其他資料庫資料表的方式，來查詢這些系統資料表和檢視。如需 Amazon Redshift 中系統資料表和檢視的詳細資訊，請參閱《Amazon Redshift 資料庫開發人員》**指南中的[系統資料表和檢視參考](https://docs.aws.amazon.com//redshift/latest/dg/cm_chap_system-tables.html)。

您可以查詢下列系統檢視和表格，以取得 零 ETL 整合的相關資訊：
+  [SVV\$1INTEGRATION](https://docs.aws.amazon.com/redshift/latest/dg/r_SVV_INTEGRATION.html) – 提供整合的組態詳細資料。
+ [SVV\$1INTEGRATION\$1TABLE\$1STATE](https://docs.aws.amazon.com/redshift/latest/dg/r_SVV_INTEGRATION_TABLE_STATE.html) – 描述整合內每個資料表的狀態。
+ [SYS\$1INTEGRATION\$1TABLE\$1STATE\$1CHANGE](https://docs.aws.amazon.com/redshift/latest/dg/r_SYS_INTEGRATION_TABLE_STATE_CHANGE.html) - 顯示整合的資料表狀態變更日誌。
+ [SYS\$1INTEGRATION\$1ACTIVITY](https://docs.aws.amazon.com/redshift/latest/dg/r_SYS_INTEGRATION_ACTIVITY.html) – 提供已完成整合執行的相關資訊。

所有整合相關的 Amazon CloudWatch 指標都源自 Amazon Redshift。如需詳細資訊，請參閱《Amazon Redshift 管理指南》**中的[零 ETL 整合的指標](https://docs.aws.amazon.com/redshift/latest/mgmt/zero-etl-using.monitoring.html)。目前，Amazon RDS 不會將任何整合指標發佈至 CloudWatch。

## 針對 Amazon Redshift 監控與 Amazon EventBridge 的整合
<a name="zero-etl.eventbridge"></a>

Amazon Redshift 會將整合相關的事件傳送至 Amazon EventBridge。如需事件清單及其對應的事件 ID，請參閱《Amazon Redshift 管理指南》**中的[搭配 Amazon EventBridge 的零 ETL 整合事件通知](https://docs.aws.amazon.com/redshift/latest/mgmt/integration-event-notifications)。