|
| 1 | +--- |
| 2 | +title: "JD Cloud Monitoring Alert Events" |
| 3 | +description: "Sync JD Cloud monitoring 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/jdcloud-integration-guide" |
| 6 | +--- |
| 7 | + |
| 8 | +Sync JD Cloud monitoring 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 **JD Cloud Monitoring** 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 **JD Cloud Monitoring** 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 JD Cloud |
| 49 | +--- |
| 50 | + |
| 51 | +### Step 1: Create Notification Template |
| 52 | +1. Login to your JD Cloud console, search for `Monitoring` product, and enter the corresponding product console. |
| 53 | +2. In the left menu, select `Alarm Management->Notice Templates`, and create or edit a notification template. |
| 54 | +3. Check `Alert Callback` on the template page, and enter the <span class='integration_url'>push URL</span> for the alert integration in the `URL` field. |
| 55 | +4. Enter the following template content in the `POST` input box. |
| 56 | + ``` |
| 57 | + { |
| 58 | + "resource_id": "${resourceId}", |
| 59 | + "request_id": "${requestId}", |
| 60 | + "metric": "${metric}", |
| 61 | + "current_value": "${currentValue}", |
| 62 | + "times": "${times}", |
| 63 | + "tags": "${tags}", |
| 64 | + "alert_time": "${alertTime}", |
| 65 | + "region": "${region}", |
| 66 | + "threshold": "${threshold}", |
| 67 | + "service_code": "${serviceCode}", |
| 68 | + "as_group_id": "${asGroupId}", |
| 69 | + "unhealthy_instance": "${unhealthyInstance}", |
| 70 | + "rule_policy_id": "${rulePolicyId}", |
| 71 | + "service_code_en": "${serviceCodeEN}", |
| 72 | + "service_code_cn": "${serviceCodeCN}", |
| 73 | + "level": "${level}", |
| 74 | + "resource_name": "${resourceName}", |
| 75 | + "ip_address": "${ipAddress}", |
| 76 | + "status": "${status}" |
| 77 | + } |
| 78 | +
|
| 79 | + ``` |
| 80 | +5. Configure other options as needed. |
| 81 | +6. Click `Save` to complete the configuration. |
| 82 | + |
| 83 | +### Step 2: Configure Alert Rules |
| 84 | +1. Login to your JD Cloud console, search for `Monitoring` product, and enter the corresponding product console. |
| 85 | +2. In the left menu, select `Alarm Management->Alarm Rules`, and create or edit an alert rule. |
| 86 | +3. In the **Notification Policy** section of the rule configuration page, select `Use Template` and choose the template created in **Step 1**. |
| 87 | +4. Configure other options as needed. |
| 88 | +5. Click `Save` to complete the configuration. |
| 89 | + |
| 90 | +## Severity Mapping |
| 91 | +--- |
| 92 | +<div class="md-block"> |
| 93 | + |
| 94 | +JD Cloud Monitoring to Flashduty severity mapping: |
| 95 | + |
| 96 | +| JD Cloud Monitoring | Flashduty | Status | |
| 97 | +| ------------------- | --------- | -------- | |
| 98 | +| Critical | Critical | Critical | |
| 99 | +| Major | Warning | Warning | |
| 100 | +| General | Info | Info | |
| 101 | + |
| 102 | +</div> |
0 commit comments