跳至內容

如何設定 CloudWatch Database Insights 以分析我的 Aurora PostgreSQL 相容版資料庫叢集?

2 分的閱讀內容
0

我想要使用 Amazon CloudWatch Database Insights 分析我的 Amazon Aurora PostgreSQL 相容版叢集。

解決方法

先決條件: 請查看以下文件。

啟用 Database Insights

重要:Performance Insights 將於 2026 年 6 月 30 日終止服務。您可以在 2026 年 6 月 30 日之前升級至 Database Insights 的進階模式。如果您未升級,則使用 Performance Insights 的資料庫叢集將預設為 Database Insights 的標準模式。只有 Database Insights 的進階模式才支援執行計畫和隨需分析。如果您的叢集預設為標準模式,那麼您可能無法在主控台上使用這些功能。若要啟用進階模式,請參閱啟用 Amazon RDS 的 Database Insights 進階模式啟用 Amazon Aurora 的 Database Insights 進階模式

請完成以下步驟:

  1. 開啟 Aurora and RDS console (Aurora 和 RDS 主控台)。
  2. 在導覽窗格中,選擇 DB Clusters (資料庫叢集),然後選取您的 Aurora PostgreSQL 叢集。
  3. 選擇 Modify (修改)。
  4. Monitoring (監控) 區段中,選擇 Database Insights - Standard (Database Insights - 標準) 或 Database Insights - Advanced (Database Insights - 進階)。如需您應該選擇哪個選項的詳細資訊,請參閱 Database Insights 模式
  5. 如果您選擇 Database Insights - Standard (Database Insights - 標準),請將保留期間設為至少 7 天,以啟用 Performance Insights。
  6. 選擇 Continue (繼續)。
  7. Schedule modifications (排程修改) 區段中,選擇 Apply immediately (立即套用),然後選擇 Modify cluster (修改叢集)。
    **備註:**如果您選擇 Apply during the next scheduled maintenance window (在下一個排程的維護時段套用),則您的資料庫會忽略此設定,並立即開啟 Database Insights。

您也可以設定 CloudWatch Database Insights 的跨帳戶跨區域監控

分析您的 Aurora PostgreSQL 資料庫叢集

請完成以下步驟:

  1. 開啟 Amazon CloudWatch console (Amazon CloudWatch 主控台)。
  2. 在導覽窗格中,展開 Infrastructure Monitoring (基礎結構監控),然後選擇 Database Insights
  3. Database Views (資料庫檢視) 區段中,選擇 Fleet HealthDatabase Instance (資料庫執行個體)。
    備註:Fleet Health Dashboard (Fleet Health 儀表板) 會顯示資料庫機群運作狀態的快照。若要使用 Fleet Health,您必須啟用 Database Insights 進階模式。
  4. 選擇 Database Instance (資料庫執行個體)。
  5. Filters (篩選條件) 區段中,選取您要分析的資料庫執行個體。

如需如何檢視資料庫執行個體運作狀態與分析效能問題的詳細資訊,請參閱檢視 CloudWatch Database Insights 的資料庫執行個體儀表板

相關資訊

使用 CloudWatch Database Insights 分析執行計畫,以最佳化 Amazon Aurora PostgreSQL 中的資料庫效能並進行疑難排解

Amazon CloudWatch Database Insights 在實際情境中的應用

AWS 官方已更新 6 個月前