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.
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.
- Create a topic in the HUAWEI CLOUD SMN console.
- Log on to the HUAWEI CLOUD SMN console. In the left-side navigation pane, choose .
- 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.
- Create a subscription in the HUAWEI CLOUD SMN console.
- Create an alarm rule in the HUAWEI CLOUD Cloud Eye console and associate the rule
with the topic.
Step 3: Trigger an event
- Log on to the HUAWEI CLOUD SMN console. In the left-side navigation pane, choose .
- 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
- Log on to the EventBridge console.
- In the top navigation bar, select a region from the drop-down list.
- In the left-side navigation pane, click Event Buses.
- In the left-side navigation pane, click Event Tracking to view and verify the obtained event information.