|
| 1 | +--- |
| 2 | +title: "JD Cloud monitoring integration" |
| 3 | +description: "Sync JD Cloud monitoring alert events to Flashduty On-call via webhook for automated alert noise reduction" |
| 4 | +keywords: ["alert integration", "JD Cloud monitoring integration", "monitoring alerts", "data ingestion"] |
| 5 | +--- |
| 6 | + |
| 7 | +<div className="hide"> |
| 8 | + |
| 9 | +## In Flashduty On-call |
| 10 | +--- |
| 11 | +You can obtain an integration push URL through either of these two methods: |
| 12 | + |
| 13 | +### Using private integration |
| 14 | + |
| 15 | +Choose this method when you don't need to route alert events to different channels — it's simpler. |
| 16 | + |
| 17 | +<AccordionGroup> |
| 18 | + <Accordion title="Expand"> |
| 19 | + |
| 20 | + 1. Go to the Flashduty console, select **Channel**, and enter a channel's details page |
| 21 | + 2. Select the **Integrations** tab, click **Add Integration** to enter the integration page |
| 22 | + 3. Choose **JD Cloud Monitoring** integration and click **Save** to generate a card |
| 23 | + 4. Click the generated card to view the **Push URL**, copy it for later use |
| 24 | + |
| 25 | +</Accordion> |
| 26 | +</AccordionGroup> |
| 27 | + |
| 28 | +### Using shared integration |
| 29 | + |
| 30 | +Choose this method when you need to route alerts to different channels based on the alert event payload. |
| 31 | + |
| 32 | +<AccordionGroup> |
| 33 | + <Accordion title="Expand"> |
| 34 | + |
| 35 | + 1. Go to the Flashduty console, select **Integration Center => Alert Events** to enter the integration selection page |
| 36 | + 2. Select **JD Cloud Monitoring** integration: |
| 37 | + - **Integration Name**: Define a name for this integration |
| 38 | + 3. Configure the default route and select the corresponding channel (after creation, go to `Route` to configure more routing rules) |
| 39 | + 4. Click **Save** and copy the newly generated **Push URL** for later use |
| 40 | + |
| 41 | +</Accordion> |
| 42 | +</AccordionGroup> |
| 43 | +</div> |
| 44 | + |
| 45 | +## In JD Cloud |
| 46 | +--- |
| 47 | + |
| 48 | +<Steps> |
| 49 | +<Step title="Create notification template"> |
| 50 | + |
| 51 | +1. Log in to the JD Cloud console, search for **Monitoring**, and enter the corresponding console |
| 52 | +2. In the left menu, select **Alarm Management → Notice Templates**, and create or edit a notification template |
| 53 | +3. Check **Alert Callback** and enter the integration push URL in the `URL` field |
| 54 | +4. Enter the following template content in the `POST` input box: |
| 55 | + |
| 56 | +```json |
| 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 and click **Save** |
| 81 | + |
| 82 | +</Step> |
| 83 | + |
| 84 | +<Step title="Configure alert rules"> |
| 85 | + |
| 86 | +1. In the left menu, select **Alarm Management → Alarm Rules**, and create or edit an alert rule |
| 87 | +2. In the **Notification Policy** section, select **Use Template** and choose the template created in the previous step |
| 88 | +3. Configure other options as needed and click **Save** |
| 89 | + |
| 90 | +</Step> |
| 91 | + |
| 92 | +<Step title="Verify integration"> |
| 93 | + |
| 94 | +Go back to the Flashduty console integration list page. If the latest event time is displayed, the configuration is successful and events are being received. |
| 95 | + |
| 96 | +</Step> |
| 97 | +</Steps> |
| 98 | + |
| 99 | +## Severity mapping |
| 100 | +--- |
| 101 | +<div className="md-block"> |
| 102 | + |
| 103 | +JD Cloud Monitoring to Flashduty severity mapping: |
| 104 | + |
| 105 | +| JD Cloud Monitoring | Flashduty | Status | |
| 106 | +| :--- | :--- | :--- | |
| 107 | +| Critical | Critical | Critical | |
| 108 | +| Major | Warning | Warning | |
| 109 | +| General | Info | Info | |
| 110 | + |
| 111 | +</div> |
0 commit comments