> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flashduty.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Alibaba Cloud Monitor CM Metrics Integration

> Sync Alibaba Cloud Monitor alert events to Flashduty via webhook for automated alert noise reduction

Sync Alibaba Cloud Monitor alert events to Flashduty via webhook for automated alert noise reduction.

<div class="hide">
  ## In Flashduty

  ***

  You can obtain an integration push URL through either of these two methods:

  ### Using Private Integration

  Choose this simpler option when you don't need to route alert events to different channels.

  <details>
    <summary>Expand</summary>

    1. Go to the Flashduty console, select **Channel**, and enter a specific channel's details page
    2. Select the **Integrations** tab, click **Add Integration** to enter the integration page
    3. Choose **Alibaba Cloud CM Metrics** integration and click **Save** to generate a card
    4. Click the generated card to view the **push URL**, copy it for later use, and you're done
  </details>

  ### Using Shared Integration

  Choose this option when you need to route alerts to different channels based on the alert event's payload information.

  <details>
    <summary>Expand</summary>

    1. Go to the Flashduty console, select **Integration Center=>Alert Events** to enter the integration selection page
    2. Select **Alibaba Cloud CM Metrics** integration:
       * **Integration Name**: Define a name for this integration
    3. Configure the default route and select the corresponding channel (after the integration is created, you can go to `Route` to configure more routing rules)
    4. Click **Save** and copy the newly generated **push URL** for later use
    5. Done
  </details>
</div>

## In Alibaba Cloud Monitor

***

Choose one of the following two methods:

**Method 1: Rule-based Configuration**

<div class="md-block">
  1. Log in to your Alibaba Cloud Console and select Cloud Monitor
  2. Go to Alert Service -> Alert Rules page, select a rule, and click the Modify button to edit the rule content
  3. As shown in the image, under Advanced Settings, enter the integration push URL as the callback address
  4. Click Confirm to submit the update

  <img src="https://download.flashcat.cloud/flashduty/doc/en/aliyun/metric-1.png" alt="drawing" width="500" />

  5. Repeat these steps for all alert rules you want to sync
  6. Return to the integration list; if the latest event time is displayed, the configuration is successful and events are being received
  7. Complete
</div>

**Method 2: Contact-based Configuration**

<div class="md-block">
  1. Log in to your Alibaba Cloud Console and select Cloud Monitor
  2. Go to Alert Service -> Alert Contacts page and select a contact to modify
  3. As shown in the image, enter the integration push URL under Webhook
  4. Click Confirm to submit the update

  <img src="https://download.flashcat.cloud/flashduty/doc/en/aliyun/metric-2.png" alt="drawing" width="500" />

  5. Repeat these steps for all contacts you want to sync events for
  6. Return to the integration list; if the latest event time is displayed, the configuration is successful and events are being received
  7. Complete
</div>

## Status Mapping

***

<div class="md-block">
  Severity level mapping from Alibaba Cloud Monitor to Flashduty:

  | Alibaba Cloud Monitor | Flashduty | Status   |
  | --------------------- | --------- | -------- |
  | CRITICAL              | Critical  | Critical |
  | WARN                  | Warning   | Warning  |
  | INFO                  | Info      | Info     |
  | NODATA                | Info      | Info     |
</div>
