Integrate Tencent Cloud Observability Platform with EventBridge

更新时间:
复制 MD 格式

Route monitoring alarms from Tencent Cloud Observability Platform to an EventBridge custom event bus through an HTTP webhook. This integration centralizes alarm management across cloud providers and enables event-driven automation, such as triggering functions or sending notifications when a Tencent Cloud alarm fires.

Tencent Cloud Observability Platform (alarm triggered)
        | HTTP POST
        v
EventBridge HTTP event source (webhook endpoint)
        |
        v
Custom event bus
        |
        v
Event rules --> downstream targets

The integration takes four steps:

  1. Create an HTTP event source in EventBridge to generate a webhook URL.

  2. Create an alarm notification template in Tencent Cloud that forwards alarms to the webhook URL.

  3. Create an alarm policy in Tencent Cloud that defines what triggers the alarm.

  4. Verify the integration to confirm events flow end-to-end.

Prerequisites

Before you begin, make sure you have:

Step 1: Create an HTTP event source in EventBridge

Create an HTTP event source to generate a webhook URL that receives alarm notifications from Tencent Cloud.

  1. Log on to the EventBridge console.

  2. Create a custom event source of the HTTP/HTTPS Events type. For detailed instructions, see Create a custom event source of the HTTP/HTTPS Events type. Configure the following settings:

    Parameter Value Description
    Request Type HTTP & HTTPS Accepts both HTTP and HTTPS requests.
    Request Method POST Tencent Cloud sends alarms as POST requests.
    Security Configuration Optional Allows requests without signature verification. Suitable for testing. For production, select a stricter option to prevent unauthorized access.
  3. After the event source is created, locate it in the event source list and click Details. Copy the Internet request URL. You will use this URL as the webhook endpoint in Tencent Cloud.

    Event source details showing the Internet request URL

Step 2: Create an alarm notification template in Tencent Cloud

Set up a notification template that forwards alarm notifications to the EventBridge webhook URL.

  1. Log on to the Tencent Cloud Observability Platform console.

  2. In the left-side navigation pane, click Alarms.

  3. On the Alarms page, click the Basic Configurations tab, and then click Notification Template.

  4. On the Notification Template page, click Create.

  5. On the Create Notification Template page, configure the template as needed.

  6. In the Port Callback section, set the URLs parameter to the Internet request URL copied from Step 1.

  7. Click Save.

Step 3: Create an alarm policy in Tencent Cloud

Define the monitoring conditions that trigger an alarm and associate the notification template from Step 2.

  1. On the Alarms page, click Policies, and then click Create.

  2. On the Create Alarm Policy page, configure the following settings:

    Parameter Value
    Monitoring Type Cloud Service Metrics
    Policy Type TDMQ > Pulsar > Topic
    Trigger Condition Define your condition. For example, trigger an alarm when the number of producers does not equal 99.
    Notification Template Select the notification template created in Step 2.
  3. Click Save.

Step 4: Verify the integration

After the alarm policy takes effect, trigger the alarm condition on your monitored Tencent Cloud service, and then confirm that the event arrives in EventBridge.

Confirm the alarm on Tencent Cloud

  1. Log on to the Tencent Cloud Observability Platform console.

  2. Choose Alarms > Alarm Records.

  3. Confirm that the alarm appears in the records.

Confirm the event in EventBridge

  1. Log on to the EventBridge console.

  2. In the top navigation bar, select the region where your custom event bus is deployed.

  3. In the left-side navigation pane, click Event Buses.

  4. Click Event Tracking to view the received events.

A successfully received event confirms that the integration is working.

What to do next

  • Create event rules: Set up rules on your custom event bus to filter, transform, and route Tencent Cloud alarm events to downstream targets.

  • Add more alarm policies: Create additional alarm policies in Tencent Cloud for different services and metrics. Each policy can use the same notification template to forward alarms to the same EventBridge webhook.

  • Strengthen security: For production environments, update the Security Configuration of your HTTP event source to require signature verification.