This topic describes how to integrate HUAWEI CLOUD Cloud Eye with EventBridge using an HTTP event source.
Background
HUAWEI CLOUD Cloud Eye is a basic monitoring and management platform for HUAWEI CLOUD services. EventBridge enables you to quickly integrate events from HUAWEI CLOUD and centralize alarm and event management.
Prerequisites
Procedure
Step 1: Create an HTTP event source
On the EventBridge console, create an HTTP/HTTPS Trigger as an event source. Configure the parameters as follows. For more details, see Use an HTTP/HTTPS trigger for a custom event source.
Request Type: Select HTTP&HTTPS.
Request Method: Select POST.
Security Config: Select None.
After the event source is created, find it in the event source list and click Details. The Internet request URL is the webhook address for the event source.
Step 2: Configure an alarm notification endpoint
HUAWEI CLOUD Cloud Eye uses Simple Message Notification (SMN) to send alarm notifications. When an alarm is triggered, Cloud Eye invokes the SMN service. Therefore, you must configure the EventBridge webhook as an endpoint in SMN.
Create a topic on the Simple Message Notification (SMN) console.
Log on to the Simple Message Notification (SMN) console. In the left-side navigation pane, choose .
In the upper-right corner of the Topic page, click Create Topic. Enter the required parameters and click Confirm.
Create a subscription on the Simple Message Notification (SMN) console.
In the left-side navigation pane, choose .
In the upper-right corner of the Subscribe page, click Add Subscription. Configure the following parameters and click OK.
Topic Name: Select the topic that you created in the previous step.
Protocol: Select HTTP or HTTPS.
Subscription Endpoint: Enter the Internet Request URL that you obtained in Step 1.
Create an alarm rule on the HUAWEI CLOUD Cloud Eye console and associate it with the topic.
Log on to the HUAWEI CLOUD Cloud Eye console. In the left-side navigation pane, choose .
In the upper-right corner of the Alarm Rules page, click Create Alarm Rule. Enter the required parameters and click Confirm.
When you set the parameters, turn on the Send Notification switch and set Notification Recipient to the topic that you created in Step 1.
Step 3: Trigger an event
Log on to the Simple Message Notification (SMN) console. In the left-side navigation pane, choose .
In the Actions column for the topic you created, click Publish Message to simulate an alarm notification.
Step 4: Verify the result
Log on to the EventBridge console.
In the top navigation bar, select a region.
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.