使用 IBM Cloud Event Notifications 傳送電子郵件警示

在 IBM Cloud Monitoring 服務中,您可以配置單一警示及多條件警示,以透過電子郵件通知支援人員可能需要注意的問題。 警示可以產生 IBM Cloud Event Notifications 服務的通知,以在該服務中配置來處理。

您的 IBM Cloud Monitoring 實例可以將事件傳送至相同 accoount 及其他帳戶中的 IBM Cloud Event Notifications 實例。IBM Cloud Event Notifications 可在有限數目的地區中使用

IBM Cloud Event Notifications 支援許多不同的目的地。 此範例說明傳送至電子郵件。 如需其他可能目的地的相關資訊,請參閱 IBM Cloud Event Notifications 文件

如需逐步指導教學,請參閱 將電子郵件通知傳送至 IBM Cloud Event Notifications。

若要配置 1 個 IBM Cloud Monitoring 服務實例以將通知傳送至 IBM Cloud Event Notifications 以透過電子郵件傳送至收件者,請執行下列動作:

步驟 1. 佈建 IBM Cloud Event Notifications 實例

佈建 IBM Cloud Event Notifications 實例。

您可以將 IBM Cloud Event Notifications 實例佈建在與 Monitoring 實例相同的帳戶或不同的帳戶中。

IBM Cloud Event Notifications 可用的事件和過濾器數目取決於選取的定價方案。 針對 計劃限制建立 IBM Cloud Event Notifications 實例時,請檢閱限制陳述式。

步驟 2. 定義授權

配置授權以將 IBM Cloud Monitoring 存取權授與 IBM Cloud Event Notifications。

當兩個服務實例都位於相同帳戶時,請選擇下列其中一個選項:

  • 選項 1: 若要授與 IBM Cloud Monitoring 服務對 IBM Cloud Event Notifications 服務的存取權,您必須定義授權,其中 來源服務 設為 IBM Cloud Monitoring 及 所有資源; 目標服務 設為 IBM Cloud Event Notifications 及 所有資源; 且 服務存取權 同時包括 讀者事件來源管理程式 存取權。

  • 選項 2: 若要授與 IBM Cloud Monitoring 服務實例對 IBM Cloud Event Notifications 服務實例的存取權,您必須定義授權,其中 來源服務 設為 IBM Cloud Monitoring 及 根據所選取屬性的資源; 目標服務 設為 IBM Cloud Event Notifications 及 基於所選取屬性的資源; 且 服務存取權 同時包括 讀者事件來源管理程式 存取權。

當兩個服務實例都位於不同的帳戶時,請在管理 IBM Cloud Event Notifications 服務的帳戶中定義授權:

  1. 在 IBM Cloud 主控台中,按一下 管理 > 存取權 (IAM),然後選取 授權

  2. 按一下建立

  3. 選取來源帳戶。

    如果需要存取目標服務的來源服務位於此帳戶中,請選取 此帳戶

    如果需要存取目標服務的來源服務是在不同的帳戶中,請選取 其他帳戶。 然後,輸入來源帳戶的帳戶 ID。

  4. 選取 IBM Cloud Monitoring 作為來源服務。 然後,將存取範圍設為 所有資源

  5. 選取 IBM Cloud Event Notifications 作為目標服務。 然後,透過配置 基於所選屬性的資源 > 服務實例,設定 所有資源 或單一實例的存取範圍。

    此授權類型不支援其他屬性。

  6. 服務存取權 區段中,包括 讀者事件來源管理程式 存取權。

  7. 按一下授權

如果您在另一個帳戶中的服務與現行帳戶中的目標服務之間建立授權,則您只需要具有目標資源的存取權。 對於來源帳戶,您只需要帳號。 

如需如何定義授權的相關資訊,請參閱 使用授權來授與服務之間的存取權

步驟 3. 設定 IBM Cloud Event Notifications 範例

  1. 配置 IBM Cloud Event Notifications 類型的通知通道。

    當您配置通道時,會將與 Monitoring 實例名稱相同的來源自動新增至 IBM Cloud Event Notifications 實例。 您可以在 IBM Cloud Event Notifications 使用者介面的 來源 區段中檢視它。

  2. 建立 IBM Cloud Event Notifications 主題

  3. 建立 IBM Cloud Event Notifications 目的地

  4. 建立 IBM Cloud Event Notifications 訂閱

    目的地中,指定 IBM Cloud Email service

下一步

接下來,驗證設定。 配置 Monitoring 警示以傳送至配置的通知頻道