tencent cloud

Feedback

Quickly Configuring Cloud Monitor Event Alarm Push

Last updated: 2024-01-22 20:52:28

    Overview

    After EventBridge is activated, it will automatically create a default Tencent Cloud service event bus in Guangzhou region, to which alarm events (Cloud Monitor events and CloudAudit events) generated by services connected to it will be automatically delivered. 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 event bus region.
    3. Click the default Tencent Cloud service event bus and enter the details page of the Tencent Cloud service event bus. 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 area, you can 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
    Data Type
    specversion
    Event structure version (CloudEvents version. Currently, only v1.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 structure declaration.
    String
    region
    Region information.
    String
    status
    Alarm event status. Valid values: 1 (abnormal), 0 (resolved), - (stateless).
    String
    tags
    Resource tag.
    String
    data
    Details of the event input through PUT Event, which are customizable by 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 to configure alarm push.
    
    
    2. Taking CVM alarm configuration as an example, you can also select another event alarm 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 you configure multiple delivery channels at the same time.
    Cross-MLC-border API callback may fail due to network instability. Exercise caution when selecting API callback.
    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