|
| 1 | +--- |
| 2 | +title: "Alibaba Cloud Monitor Prometheus" |
| 3 | +description: "Sync Alibaba Cloud Monitor Prometheus alert events to Flashduty via webhook for automated alert noise reduction" |
| 4 | +date: "2025-05-19T10:00:00+08:00" |
| 5 | +url: "https://docs.flashcat.cloud/en/flashduty/aliyun-prometheus-integration-guide" |
| 6 | +--- |
| 7 | + |
| 8 | +Sync Alibaba Cloud Monitor Prometheus alert events to Flashduty via webhook for automated alert noise reduction. |
| 9 | + |
| 10 | +<div class="hide"> |
| 11 | + |
| 12 | +## In Flashduty |
| 13 | +--- |
| 14 | +You can obtain an integration push URL through either of these two methods: |
| 15 | + |
| 16 | +### Using Private Integration |
| 17 | + |
| 18 | +Choose this method when you don't need to route alert events to different channels - it's simpler. |
| 19 | + |
| 20 | +<details> |
| 21 | + <summary>Expand</summary> |
| 22 | + |
| 23 | + 1. Go to the Flashduty console, select **Channel**, and enter a channel's details page |
| 24 | + 2. Select the **Integrations** tab, click **Add Integration** to enter the integration page |
| 25 | + 3. Choose **Alibaba Cloud Monitor Prometheus** integration and click **Save** to generate a card |
| 26 | + 4. Click the generated card to view the **Push URL**, copy it for later use, and you're done |
| 27 | + |
| 28 | +</details> |
| 29 | + |
| 30 | +### Using Shared Integration |
| 31 | + |
| 32 | +Choose this method when you need to route alerts to different channels based on the alert event payload. |
| 33 | + |
| 34 | +<details> |
| 35 | + <summary>Expand</summary> |
| 36 | + |
| 37 | + 1. Go to the Flashduty console, select **Integration Center=>Alert Events** to enter the integration selection page |
| 38 | + 2. Select **Alibaba Cloud Monitor Prometheus** integration: |
| 39 | + - **Integration Name**: Define a name for this integration |
| 40 | + 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) |
| 41 | + 4. Click **Save** and copy the newly generated **push URL** for later use |
| 42 | + 5. Done |
| 43 | + |
| 44 | +</details> |
| 45 | + |
| 46 | +</div> |
| 47 | + |
| 48 | +## In Alibaba Cloud |
| 49 | +--- |
| 50 | + |
| 51 | +### Step 1: Create a Custom Webhook |
| 52 | +1. Login to your Alibaba Cloud console, search for `Cloud Monitor` product, and enter the corresponding product console. |
| 53 | +2. In the left menu, select `Prometheus Monitoring->Notification Objects`, and create or edit a `Custom Webhook`. |
| 54 | +3. On the edit page, enter `Flashduty` for both the name and identifier, and enter the <span class='integration_url'>push URL</span> for the alert integration in the `URL` field. |
| 55 | +4. In the `Headers` section, set **Header Key** to **Content-Type** and **Header Value** to **application/json**. |
| 56 | +5. Select **POST** for `Method` and **JSON** for `Data Format`. |
| 57 | +6. Click `OK` to complete the configuration. |
| 58 | + |
| 59 | +### Step 2: Configure Alert Rules |
| 60 | +1. Login to your Alibaba Cloud console, search for `Cloud Monitor` product, and enter the corresponding product console. |
| 61 | +2. In the left menu, select `Prometheus Monitoring->Alert Rules`, and create or edit an alert rule. |
| 62 | +3. In the **Notification Mode** section of the rule configuration page, select `Simple Mode`. |
| 63 | +4. For `Notification Object`, select the custom webhook created in **Step 1**. |
| 64 | +5. Click `OK` to complete the configuration. |
| 65 | + |
| 66 | +## Severity Mapping |
| 67 | +--- |
| 68 | +<div class="md-block"> |
| 69 | + |
| 70 | +Alibaba Cloud Prometheus to Flashduty severity mapping: |
| 71 | + |
| 72 | +| Alibaba Cloud Monitor | Flashduty | Status | |
| 73 | +| --------------------- | --------- | -------- | |
| 74 | +| Critical | Critical | Critical | |
| 75 | +| Error | Critical | Critical | |
| 76 | +| Warning | Warning | Warning | |
| 77 | +| Normal | Info | Info | |
| 78 | + |
| 79 | +</div> |
0 commit comments