This topic describes how to use an HTTP event source to integrate Tencent Cloud's Cloud Monitor (CM) with EventBridge.

Background information

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

Prerequisites

Procedure

Step 1: Create an event source for Tencent Cloud CM 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 an alarm policy in Tencent Cloud CM

  1. Create an alarm template.
    1. Log on to the Tencent Cloud CM console. In the left-side navigation pane, choose Alarm > Notification Template.
    2. On the Notification Template page, click Create.
    3. On the Create Notification Template page, set the parameters as needed and click Save.
      In the Port Callback section, set the URLs parameter to the Internet request URL that is generated in Step 1.
  2. Create an alarm policy.
    1. In the left-side navigation pane, choose Alarm > Alarm Configuration > Alarm Policy.
    2. On the Alarm Policy page, click Create.
    3. On the Create Alarm Policy page, set the following parameters and click Save.
      • Monitoring type: Select Cloud Service Metrics.
      • Policy type: Select TDMQ > Pulsar > Topic.
      • Trigger condition: To facilitate testing, a trigger condition is specified to trigger an alarm if the number of producers is not 99 in this example.
      • Notification Template: Select the template that is created in the previous step.

Step 3: Trigger an event

If the monitored service meets the condition specified in the alarm policy, Tencent Cloud CM automatically reports an alarm. You can log on to the Tencent Cloud CM console, choose Alarm > Alarm Records, and then view the reported alarm on the Alarm Records page.

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.