tencent cloud

Feedback

Quickly Configuring Cloud Monitor Event Alarm Push

Last updated: 2024-10-17 21:23:05

    Overview

    After EventBridge is activated, it will automatically create a default Tencent Cloud service event bus in the Guangzhou region. Alarm events (cloud service monitoring events and CloudAudit events) generated by services connected to EventBridge will be automatically delivered to this event bus. You can also set event rules and delivery targets to configure an alarm linkage.

    Alarm Configuration Directions

    1. View the event list

    1. Log in to the EventBridge console.
    2. Select the Guangzhou region where the default Tencent Cloud service event bus is located.
    3. Click the default Tencent Cloud service event bus to go to its details page. On the details page, you can see the Tencent Cloud service events that have been delivered to the Tencent Cloud service event bus.
    4. In the Event connector section, view all Tencent Cloud services that support alarm event push.
    
    You can click Details to view all alarm event types that are currently supported.
    

    Sample

    Taking a "ping unreachable" event generated by CVM as an example, the standard format for delivering the event to the Tencent Cloud service event bus is as follows:
    {
    "specversion":"1.0",
    "id":"13a3f42d-7258-4ada-da6d-023a333b4662",
    "source":"${ProductName}.cloud.tencent",
    "type":"cvm:ErrorEvent:ping_unreachable",
    "subject":"${six-segment service description in CAM}",
    "time": 1615430559146,
    "region":"ap-guangzhou",
    "resource":[
    "qcs::eb:ap-guangzhou:uid1250000000:eventbusid/eventruleid"
    ],
    "datacontenttype":"application/json;charset=utf-8",
    "tags":{
    "key1":"value1",
    "key2":"value2"
    },
    "status":"1",
    "data":{
    "appId":"1250000011",
    "instanceId":"ins-xxxxxxx",
    "projectId":"11",
    "dimensions":{
    "ip":"127.0.0.1"
    },
    "additionalMsg":{
    "IP":"something unnormal"
    }
    }
    }

    Field description

    Field
    Description
    String data type
    specversion
    Event structure version (CloudEvents version). Currently, only version 1.0 is supported.
    String
    id
    ID returned by PUT Event.
    String
    Type
    Type of the event input through PUT Event. The standard format of a Tencent Cloud service alarm event is ${ProductName}:ErrorEvent:${EventType}, where colons (:) are used to separate type fields.
    String
    source
    Event source (which is required for a Tencent Cloud service event and is the abbreviation of subject). The value is xxx.cloud.tencent by default for a Tencent Cloud service.
    String
    subject
    Event source details, which can be customized. QCS description such as qcs::dts:ap-guangzhou:appid/uin:xxx is used for a Tencent Cloud service by default.
    String
    time
    Event time, which is a GMT+0 timestamp in milliseconds, such as 1615430559146.
    Timestamp
    datacontenttype
    Data media type declaration.
    String
    region
    Region.
    String
    status
    Alarm event status. Valid values:
    1: error
    0: recovered
    -: stateless
    String
    tags
    Resource tags.
    String
    data
    Details of the event input through PUT Event, which are customizable based on the specific business.
    String

    2. Configure an alarm event rule

    1. Go to the Event rule page, select the target event bus, and create an event rule under it to filter the events for which you want to configure alarm push.
    
    
    2. Taking CVM alarm configuration as an example, you can select a specific event alarm type or all events. For more information on event match rules, see Event Pattern.
    
    
    
    3. If you want to limit the alarm scope to a specific instance, click Edit and add the subject field to the event pattern.

    3. Configure delivery targets

    For event alarm scenarios, you can set Notification message for the delivery target. Notification message: You can configure a notification message to push your alarm events in the specified delivery method to promptly reach users.
    
    
    
    After completing the configuration, you can view and configure the push of alarm events in the EventBridge console.
    Note
    Use limits: For SMS message delivery, a notification message can contain up to 500 characters. For phone delivery, a notification message can contain up to 350 characters. If fields such as the instance name are too long, notification messages may fail to be sent due to excessive length. We recommend that you configure multiple delivery channels.
    Cross-MLC-border API callback may fail due to network instability.
    EventBridge no longer supports the alarm notification template feature. To create an alarm notification template, go to the Manage alarms page of Tencent Cloud Observability Platform.

    Quickly Migrating Event Center for Existing Users

    For existing users of Event Center of Tencent Cloud Observability Platform, we have completed automatic migration of existing policies at the end of April, 2022. For more information, see Quick Migration Guide. The backend service will automatically perform the following operations:
    1. Automatically convert the existing alarm policies in Event Center to event rules in the Tencent Cloud service event bus (one policy corresponds to one rule).
    2. Create the corresponding message push target for each existing notification template in Event Center and bind it to the default Tencent Cloud service event bus to complete alarm push configuration.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support