This topic describes how to use an HTTP event source to integrate HUAWEI CLOUD Cloud Eye with EventBridge.

Background information

HUAWEI CLOUD Cloud Eye is the basic monitoring platform for HUAWEI CLOUD services. EventBridge supports fast integration with HUAWEI CLOUD Cloud Eye for you to manage alarms and events in a centralized manner.

Prerequisites

Procedure

Step 1: Create an event source for HUAWEI CLOUD Cloud Eye in EventBridge

Create an event source HTTP/HTTPS trigger in the EventBridge console. The following table describes the parameters. For more information, see Create a custom event source of the HTTP/HTTPS Events type.
  • Request Type: Select HTTP&HTTPS.
  • Request Method: Select a POST.
  • Security Configuration: Select No Configuration Required.
After the event source is created, you can find the custom event source in the event source list, and then click Details to view the configuration information. Internet request URL can be used as the webhook URL of the event source. pic-1

Step 2: Configure alarm reporting in HUAWEI CLOUD services

Note The alarm notifications of HUAWEI CLOUD Cloud Eye are sent by using the Simple Message Notification (SMN) service of HUAWEI CLOUD. If an alarm is triggered in HUAWEI CLOUD Cloud Eye, HUAWEI CLOUD SMN is invoked to send a notification. Therefore, you must configure a subscription for EventBridge in HUAWEI CLOUD SMN.
  1. Create a topic in the HUAWEI CLOUD SMN console.
    1. Log on to the HUAWEI CLOUD SMN console. In the left-side navigation pane, choose Topic Management > Topics.
    2. In the upper-right corner of the Topics page, click Create Topic. In the Create Topic dialog box, set the parameters as needed and click OK.
  2. Create a subscription in the HUAWEI CLOUD SMN console.
    1. In the left-side navigation pane, choose Topic Management > Subscriptions.
    2. In the upper-right corner of the Subscriptions page, click Add Subscription. In the Add Subscription dialog box, set the following parameters and click OK.
      • Topic Name: Select the topic that you create in the previous step.
      • Protocol: Select HTTP or HTTPS.
      • Endpoint: Enter the Internet request URL that is generated in Step 1.
  3. Create an alarm rule in the HUAWEI CLOUD Cloud Eye console and associate the rule with the topic.
    1. Log on to the HUAWEI CLOUD Cloud Eye console. In the left-side navigation pane, choose Alarm Management > Alarm Rules.
    2. In the upper-right corner of the Alarm Rules page, click Create Alarm Rule. In the Create Alarm Rule page, set the parameters as needed and click Create.
      Turn on Alarm Notification and set the Notification Object parameter to the topic that is created in the previous step.

Step 3: Trigger an event

  1. Log on to the HUAWEI CLOUD SMN console. In the left-side navigation pane, choose Topic Management > Topics.
  2. Find the topic that you create and click Publish Message in the Operation column. This simulates the scenario in which a notification is sent when an alarm rule is triggered.

Step 4: Verify the result

  1. Log on to the EventBridge console.
  2. In the top navigation bar, select a region from the drop-down list.
  3. In the left-side navigation pane, click Event Buses.
  4. In the left-side navigation pane, click Event Tracking to view and verify the obtained event information.