|
| 1 | +--- |
| 2 | +title: "Ucloud CloudWatch Alert Events" |
| 3 | +description: "Sync Ucloud CloudWatch alert events to Flashduty via webhook for automated alert noise reduction" |
| 4 | +date: "2024-07-05T10:00:00+08:00" |
| 5 | +url: "https://docs.flashcat.cloud/en/flashduty/ucloud-cloudwatch-integration-guide" |
| 6 | +--- |
| 7 | + |
| 8 | +Sync Ucloud CloudWatch 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 **Ucloud CloudWatch** 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 **Ucloud CloudWatch** 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 | +</div> |
| 46 | + |
| 47 | +## In Ucloud |
| 48 | +--- |
| 49 | + |
| 50 | +### Step 1: Configure Notice Template |
| 51 | + |
| 52 | +1. Login to your Ucloud console, search for `CloudWatch` product, and enter the corresponding product console. |
| 53 | +2. In the menu, select `Notice Management`, and go to the `Contact Template` page. |
| 54 | +3. Create or edit a notification template, check `Webhook` on the template page. |
| 55 | +4. Select `English` for **Callback Language**, and enter the <span class='integration_url'>push URL</span> for the alert integration in the input box. |
| 56 | +5. Enter `Flashduty` or another name for the template name. |
| 57 | +6. Configure other options as needed. |
| 58 | +7. Click `Submit` to complete the configuration. |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | +### Step 2: Configure Alert Policy |
| 63 | +1. Login to your Ucloud console, search for `CloudWatch` product, and enter the corresponding product console. |
| 64 | +2. In the menu, select `Alarm Management`, and go to the `Alarm Policy` page. |
| 65 | +3. Create or edit an alert policy, find the **Notification Settings** on the policy configuration page, and select the notification template created in **Step 1**. |
| 66 | +4. Configure other options as needed. |
| 67 | +5. Click `Submit` to complete the configuration. |
| 68 | + |
| 69 | + |
| 70 | +## Severity Mapping |
| 71 | +--- |
| 72 | +Currently, all Ucloud CloudWatch alert events pushed to Flashduty have a severity of Warning. You can customize the severity through [Alert Processing Pipeline](https://docs.flashcat.cloud/en/on-call/integration/alert-integration/alert-pipelines). |
0 commit comments