Event Integration

Updated at:

Ingest alert events from third-party monitoring platforms and custom systems into CloudMonitor 2.0 for unified event management and alert notifications.

Overview

Event integration consolidates alert events from various monitoring systems into CloudMonitor 2.0. Field mapping transforms external event formats into the standard event format, enabling you to:

  • Manage alert events from multiple monitoring platforms in a single location.

  • Configure flexible event processing rules.

  • Receive alert notifications through event subscriptions.

Create an event integration

  1. Log on to the CloudMonitor 2.0 console, select the target workspace, and in the left-side navigation pane, choose All Features > Event Center.

  2. In the Event Center navigation pane, choose Event Management > Event Integration.

  3. Click New Event Integration and configure the following parameters:

    • Name: The name of the event integration, used to identify it.

    • Description: A description of the event integration.

Edit an event integration

  1. After you create an event integration, you can edit its configuration, including the description and field mapping.

    Only integrations of the user-defined event type can be edited.

    Parameter

    Description

    URL

    The API endpoint for event reporting, in the format https://{regionId}.log.aliyuncs.com/v1/events/{token}.

    Token

    A unique token that authenticates the event source.

  2. Field mapping transforms event data from a third-party system into the CloudMonitor 2.0 standard format.

    • Data source

      Data source

      Description

      Source path

      Retrieves a value from a specific path in the reported event data. Use the data. prefix to access raw data, such as data.subject or data.detail.AlarmName.

      Set value

      Sets a fixed constant.

      Merge

      Merges map data from the source path into the target field.

    • Target field

      Target field

      Description

      ID

      The unique identifier of the event.

      SOURCE

      The identifier for the event source.

      TIME

      The event timestamp. The system automatically converts a time string to a millisecond timestamp. If the conversion fails, the system uses the current time.

      SUBJECT

      The event description or title.

      SEVERITY

      The severity level. Valid values: CRITICAL, WARNING, and INFO.

      STATUS

      The alert status. Valid values: OCCURRED, PERSISTENT, and RECOVERED.

      LABELS

      Event labels in key-value format.

      RESOURCE_TAGS

      Resource tags in key-value format.

      RESOURCE_ENTITY

      Resource entity information, including properties such as domain, entity_type, entity_id, and prop.

      ANNOTATIONS

      Annotations for the event.

      Note: For key-value target fields such as LABELS, RESOURCE_TAGS, RESOURCE_ENTITY, and ANNOTATIONS, you must also specify the labelKey parameter to specify the key.

      Parameter

      Location

      Required

      Description

      token

      Path

      Yes

      The token for the event integration.

      timestamp

      Query

      No

      The event timestamp in milliseconds, used for signature verification.

      sign

      Query

      No

      The HMAC-SHA256 signature. This parameter is required if a secret is configured.

      debug

      Query

      No

      Enables debug mode. When set to true, the system returns the complete transformed event object.

Send a test event

Send a test event from the console to verify that your event integration is configured correctly.

  1. In the event integration list, find the target integration and click Send Test Event.

  2. In the test panel, enter the test event data.

  3. Click Send and check the event reporting result.

Rotate a secret

If an event integration's secret needs to be updated, for example for security reasons, you can rotate it.

Note: Secret rotation is only supported for integrations of the user-defined event type.
  1. In the event integration list, find the target integration and click Rotate Key.

  2. In the confirmation dialog box, click OK.

  3. After the secret is rotated, follow the integration guide to update the secret in your third-party system.

Note

After you rotate the secret, the original token becomes invalid. You must update your third-party system to use the new token.

Manage event integrations

The Event Integration list supports the following actions:

  • Search: Search for an integration by name. You can also filter by status.

  • Status: Use the status toggle to Disable or Enabled an integration.

  • Delete: In the Actions column, click Delete, and then click Confirm in the confirmation dialog box.

    Warning

    If you delete an event integration, its related event processing configurations are also deleted, and this action cannot be undone.

Throttling

  • When reporting alert events from a custom integration, keep the frequency and volume within the allowed thresholds.

  • By default, the system sets the following event reporting throttling thresholds for each Alibaba Cloud account: 1,000 events per minute, 10,000 events per hour, and 20,000 events per day.

  • When the event reporting frequency exceeds these thresholds, throttling is triggered and event reporting from all custom integrations under the account fails.

  • These thresholds apply to deduplicated events. If an event is reported multiple times, it is counted only once.

  • To avoid triggering throttling, configure the deduplication fields for your integration properly. If the default thresholds do not meet your requirements, submit a ticket to request a quota increase.

  • When throttling is triggered, the system automatically sends an internal notification.

Field mapping example

The following example maps an AWS CloudWatch alert event to the CloudMonitor 2.0 standard event format:

[
  {
    "type": "SET_FIELD",
    "source": "data.subject",
    "target": "SUBJECT"
  },
  {
    "type": "SET_FIELD",
    "value": "WARNING",
    "target": "SEVERITY"
  },
  {
    "type": "SET_FIELD",
    "source": "data.time",
    "target": "TIME"
  },
  {
    "type": "SET_FIELD",
    "source": "data.detail.AlarmName",
    "target": "LABELS",
    "labelKey": "alertName"
  },
  {
    "type": "SET_FIELD",
    "source": "data.detail.Region",
    "target": "LABELS",
    "labelKey": "region"
  },
  {
    "type": "SET_FIELD",
    "source": "data.dims.InstanceId",
    "target": "RESOURCE_ENTITY",
    "labelKey": "prop.instanceId"
  },
  {
    "type": "SET_FIELD",
    "value": "acs.ecs.instance",
    "target": "RESOURCE_ENTITY",
    "labelKey": "entity_type"
  }
]