Skip to content

Commit 47d0b8d

Browse files
authored
Merge pull request #509 from flashcatcloud/feat/cn-alert-integrations-test
docs: China Mobile Cloud and Tencent Cloud Live alert integrations, VMP and bridge sections (test)
2 parents 47ba458 + 055f75c commit 47d0b8d

16 files changed

Lines changed: 630 additions & 2 deletions

File tree

‎docs.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,10 @@
277277
"zh/on-call/integration/alert-integration/alert-sources/aws-cloudwatch",
278278
"zh/on-call/integration/alert-integration/alert-sources/aws-eventbridge",
279279
"zh/on-call/integration/alert-integration/alert-sources/tencent-cls",
280+
"zh/on-call/integration/alert-integration/alert-sources/tencent-css",
280281
"zh/on-call/integration/alert-integration/alert-sources/tencent-cm",
281282
"zh/on-call/integration/alert-integration/alert-sources/tencent-eventbridge",
283+
"zh/on-call/integration/alert-integration/alert-sources/ecloud-cm",
282284
"zh/on-call/integration/alert-integration/alert-sources/huawei-ces",
283285
"zh/on-call/integration/alert-integration/alert-sources/huawei-lts",
284286
"zh/on-call/integration/alert-integration/alert-sources/huawei-apm",
@@ -1514,8 +1516,10 @@
15141516
"en/on-call/integration/alert-integration/alert-sources/aws-cloudwatch",
15151517
"en/on-call/integration/alert-integration/alert-sources/aws-eventbridge",
15161518
"en/on-call/integration/alert-integration/alert-sources/tencent-cls",
1519+
"en/on-call/integration/alert-integration/alert-sources/tencent-css",
15171520
"en/on-call/integration/alert-integration/alert-sources/tencent-cm",
15181521
"en/on-call/integration/alert-integration/alert-sources/tencent-eventbridge",
1522+
"en/on-call/integration/alert-integration/alert-sources/ecloud-cm",
15191523
"en/on-call/integration/alert-integration/alert-sources/huawei-ces",
15201524
"en/on-call/integration/alert-integration/alert-sources/huawei-lts",
15211525
"en/on-call/integration/alert-integration/alert-sources/huawei-apm",

‎en/on-call/integration/alert-integration/alert-sources/aliyun-sls.mdx‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,15 @@ Alibaba Cloud SLS monitoring to Flashduty alert severity mapping:
123123
| 2 | Info | Info |
124124

125125
</div>
126+
127+
## Alibaba Cloud ActionTrail
128+
---
129+
<div class="md-block">
130+
131+
ActionTrail's "event alert" feature is provided by Log Service (SLS), not a separate push channel: first create a trail that delivers events to a Logstore, then configure an SLS alert on that Logstore. The notification channel reuses the webhook integration steps above — no separate integration is needed for ActionTrail.
132+
133+
1. Log in to the Alibaba Cloud Console, go to **ActionTrail**, and create a trail that delivers events to a Logstore in Log Service (SLS)
134+
2. Go to **ActionTrail Console → Event Alert → Alert Center** (or go directly to the Log Service SLS console for that Logstore), and select the corresponding trail or Logstore
135+
3. Follow steps 1-4 of "In Alibaba Cloud SLS" above to configure the webhook, content template, action policy, and monitoring rule, using the same Flashduty integration push URL
136+
137+
</div>

‎en/on-call/integration/alert-integration/alert-sources/dingtalk-alert.mdx‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,23 @@ By default, the system always creates new alerts for each message, but you can s
7878
---
7979

8080
Currently, all alerts pushed to Flashduty through the Dingtalk integration are set to Warning severity. However, you can customize the severity using the [alert pipeline](/en/on-call/integration/alert-integration/alert-pipelines).
81+
82+
## Alibaba Cloud Message Center
83+
---
84+
<div class="md-block">
85+
86+
The "Robot Reception" feature in Alibaba Cloud's account Message Center can push account, product, and security notices to a custom webhook. Its data format can reuse the Dingtalk robot protocol, so it connects directly to the Dingtalk alert integration on this page.
87+
88+
1. Log in to Alibaba Cloud **Message Center**, go to **Robot Reception Management → Robot Management → Add Robot**
89+
2. Select **Custom** for **Robot Platform**, enter the **Dingtalk Alert Integration URL** from above for **Webhook Address**, and select **Format A (typically used by Dingtalk)** for **Data Format**
90+
3. Complete the CAPTCHA verification and save
91+
92+
<Note>
93+
Notices from Message Center are one-shot — there is no paired recovery message. Refer to "Push Mode" above and configure **Trigger or Update Alert Based on Message Title** or **Trigger or Close Alert Based on Rules** so alerts don't stay open forever.
94+
</Note>
95+
96+
<Note>
97+
If you're integrating Alibaba Cloud Monitor (CloudMonitor) alerts, use the [Alibaba Cloud Monitor CM Metrics Integration](/en/on-call/integration/alert-integration/alert-sources/aliyun-cm-metrics) directly for full dedup and recovery support.
98+
</Note>
99+
100+
</div>
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
---
2+
title: "China Mobile Cloud (ecloud) Cloud Monitor integration"
3+
description: "Sync China Mobile Cloud Cloud Monitor alerts to Flashduty On-call through the custom webhook of an alarm contact. Alerts close automatically when they recover."
4+
keywords: ["alert integration", "China Mobile Cloud", "ecloud", "Cloud Monitor", "移动云", "Webhook"]
5+
---
6+
7+
Push China Mobile Cloud (ecloud) Cloud Monitor alerts to Flashduty On-call through the custom webhook address of an alarm contact. Alerts that the same rule keeps raising on the same resource map to one Flashduty alert: the alert opens when it triggers and recovers automatically when China Mobile Cloud pushes the recovery.
8+
9+
<div className="hide">
10+
11+
## In Flashduty On-call
12+
---
13+
14+
You can obtain an integration push URL in either of the following ways.
15+
16+
### Use a dedicated integration
17+
18+
1. In the Flashduty console, select **Channel** and open a channel
19+
2. Select **Configuration** → **Integrations** → **Private integration**, then click **Add an integration**
20+
3. Select **China Mobile Cloud**, then click **Save**
21+
4. Open the generated integration card and copy the **Push URL**
22+
23+
### Use a shared integration
24+
25+
1. In the Flashduty console, select **Integration Center → Alert Events**
26+
2. Select **China Mobile Cloud** and enter an integration name
27+
3. Configure the default route and select a channel; after creation, add more rules under **Route** if needed
28+
4. Click **Save** and copy the generated **Push URL**
29+
30+
</div>
31+
32+
## In China Mobile Cloud
33+
---
34+
35+
<Steps>
36+
<Step title="Create an alarm contact with a webhook address">
37+
38+
1. Sign in to the China Mobile Cloud console and go to **云监控 (Cloud Monitor)** → **告警服务 (Alarm service)** → **告警联系人 (Alarm contacts)**
39+
2. Click **新建告警联系人 (Create alarm contact)** and enter the contact's name, mobile number, and email
40+
3. Paste the full Flashduty integration push URL into **自定义webhook地址 (Custom webhook address)**. The URL must include `integration_key`
41+
4. Save the contact
42+
43+
China Mobile Cloud requires the webhook address to be reachable from the public internet. The Flashduty push URL meets this requirement.
44+
45+
</Step>
46+
47+
<Step title="Notify the contact from an alarm policy">
48+
49+
1. Go to **云监控 (Cloud Monitor)** → **告警服务 (Alarm service)** → **告警策略 (Alarm policies)**, then create or edit an alarm policy
50+
2. Select the alarm contact created in the previous step as a notification recipient and save the policy
51+
52+
When an alarm rule in the policy triggers or recovers, China Mobile Cloud pushes the alarm to the contact's webhook address.
53+
54+
</Step>
55+
56+
<Step title="Verify">
57+
58+
1. Make an alarm rule in the policy trigger, for example by temporarily lowering the threshold of a CPU utilization rule on a cloud server, and confirm that Flashduty receives an active alert
59+
2. Restore the threshold. After the monitoring data returns to normal and China Mobile Cloud pushes the recovery, confirm that the original alert recovers
60+
61+
</Step>
62+
</Steps>
63+
64+
## Alert Key
65+
---
66+
67+
Every push from China Mobile Cloud carries an alarm ID (`alarmId`). According to China Mobile Cloud, `alarmId` stays the same for alarms that the same rule keeps raising on the same resource. Flashduty computes the Alert Key from `alarmId`, so:
68+
69+
- Repeated pushes and the recovery push for the same resource and alarm rule go to the same alert
70+
- When one alarm rule applies to several resources, each resource gets its own alert
71+
- Changes to the alarm level, alarm content, trigger value, or time do not change the Alert Key
72+
73+
Requests without `alarmId` are rejected.
74+
75+
## Status and severity
76+
---
77+
78+
The alert recovers when `recover` is `true`. Any other value is treated as a trigger. The severity comes from the alarm level (`alarmLevel`):
79+
80+
| China Mobile Cloud alarm level | Flashduty severity |
81+
| :--- | :--- |
82+
| 严重 (Critical) | Critical |
83+
| 重要 (Major) | Warning |
84+
| 次要 (Minor) | Info |
85+
| 提示 (Notice) | Info |
86+
| Empty or any other value | Warning |
87+
88+
A recovered alert keeps the severity it had before recovery.
89+
90+
## Alert content and labels
91+
---
92+
93+
The alert title combines the resource name (`resourceName`) and the metric name (`metricName`), for example `ECS-45273803 CPU利用率`. The alert description is the alarm content (`content`) pushed by China Mobile Cloud, which includes the trigger value and trigger time.
94+
95+
| Label | Source |
96+
| :--- | :--- |
97+
| `check` | Metric name (`metricName`) |
98+
| `resource` | Resource name (`resourceName`) |
99+
| `resource_id` | Resource ID (`resourceId`) |
100+
| `product_type` | Resource type (`productType`), such as `云主机 ECS` |
101+
| `region` | Resource pool of the resource (`poolName`), such as `湖北-襄阳` |
102+
| `pool_id` | Resource pool ID (`poolId`) |
103+
| `ip_infos` | Resource IP information (`ipInfos`), sent for cloud servers (ECS) only |
104+
| `child_node` | Child node name (`childNode`), sent for child-node alarms only |
105+
| `alarm_id` | Alarm ID (`alarmId`) |
106+
| `alarm_type` | Alarm type (`alarmTypeCn`) |
107+
| `alarm_level` | Original alarm level in China Mobile Cloud |
108+
| `rule_id` | Alarm rule ID (`ruleId`); not sent when the rules in a policy are combined with AND |
109+
| `strategy_id` | Alarm policy ID (`strategyId`) |
110+
| `user_name` | China Mobile Cloud user name (`userName`) |
111+
| `notify_time` | Time of this alarm notification (`notifyTime`) |
112+
113+
## Troubleshooting
114+
---
115+
116+
- **Flashduty receives no alerts**: Confirm that the alarm policy notifies the alarm contact that has the webhook address, and that the address is complete and includes `integration_key`
117+
- **Flashduty returns a parameter error**: Confirm that the pushed content includes `alarmId`
118+
- **The alert does not recover**: China Mobile Cloud pushes a recovery when the monitoring data returns to normal and it clears the real-time alarm automatically. If an alarm that ended another way (for example, a manual clear) pushes no recovery, close the corresponding alert in Flashduty manually
119+
- **All alerts have Warning severity**: Check `alarmLevel` in the pushed content and see the status and severity section above
120+
121+
For a full description of the pushed fields, see the Cloud Monitor **告警联系人 (Alarm contacts)** document in the China Mobile Cloud help center.

‎en/on-call/integration/alert-integration/alert-sources/jiankongbao.mdx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ Choose this option when you need to route alerts to different channels based on
4545
## In Jiankongbao
4646
---
4747

48+
This integration also covers Cloudwise Jiankongbao (including Jiankongbao 6) URL callback notifications.
49+
4850
<div class="md-block">
4951

5052
## I. Jiankongbao Alert Push Configuration

‎en/on-call/integration/alert-integration/alert-sources/lark-alert.mdx‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,23 @@ By default, the system always creates new alerts for each message, but you can s
7878
---
7979

8080
Currently, all alerts pushed to Flashduty through the Feishu(lark) integration are set to Warning severity. However, you can customize the severity using the [alert pipeline](/en/on-call/integration/alert-integration/alert-pipelines).
81+
82+
## Alibaba Cloud Message Center
83+
---
84+
<div class="md-block">
85+
86+
The "Robot Reception" feature in Alibaba Cloud's account Message Center can push account, product, and security notices to a custom webhook. Its data format can reuse the Feishu robot protocol, so it connects directly to the Feishu alert integration on this page.
87+
88+
1. Log in to Alibaba Cloud **Message Center**, go to **Robot Reception Management → Robot Management → Add Robot**
89+
2. Select **Custom** for **Robot Platform**, enter the **Feishu Alert Integration URL** from above for **Webhook Address**, and select **Format B (typically used by Feishu)** for **Data Format**
90+
3. Complete the CAPTCHA verification and save
91+
92+
<Note>
93+
Notices from Message Center are one-shot — there is no paired recovery message. Refer to "Push Mode" above and configure **Trigger or Update Alert Based on Message Title** or **Trigger or Close Alert Based on Rules** so alerts don't stay open forever.
94+
</Note>
95+
96+
<Note>
97+
If you're integrating Alibaba Cloud Monitor (CloudMonitor) alerts, use the [Alibaba Cloud Monitor CM Metrics Integration](/en/on-call/integration/alert-integration/alert-sources/aliyun-cm-metrics) directly for full dedup and recovery support.
98+
</Note>
99+
100+
</div>

‎en/on-call/integration/alert-integration/alert-sources/prometheus.mdx‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,24 @@ By default, the system uses the current time as the event trigger time. If you w
136136

137137
</div>
138138

139+
### In Volcengine Managed Prometheus (VMP)
140+
141+
VMP's general webhook sends alerts in the Alertmanager format, so it uses this integration's push URL directly.
142+
143+
<div class="md-block">
144+
145+
1. Log in to the Volcengine Managed Prometheus console, go to **Alert Center** → **Alert Notification Policies**, and open the **Notification Objects** tab
146+
2. Click **Create Notification Object**, set the object type to **Contact**, check **General Webhook** under Webhook (not the Feishu, DingTalk, or WeCom bot options, whose format is incompatible), enter the integration push URL, and **leave Token unchecked**
147+
3. Add the contact to a contact group (VMP notification policies only accept contact groups)
148+
4. In **Alert Notification Policies**, create or edit a policy and select that contact group as the notification object
149+
5. Select that notification policy in the alert rule's notification settings, save, and you're done
150+
151+
</div>
152+
139153
## Severity Mapping
140154
---
141155

142-
The system extracts `severity`, `priority`, and `level` from alert event labels in that order. The corresponding value will be used as Prometheus's own alert severity. If none are found, the system automatically sets the Prometheus alert severity to `Warning`.
156+
The system extracts `severity`, `priority`, and `level` from alert event labels in that order. The corresponding value will be used as Prometheus's own alert severity. If none are found, it reads VMP's `internal_label_alert_level` label: `P0` maps to Critical, `P1` to Warning, and `P2` to Info. If that is also missing, the system sets the Prometheus alert severity to `Warning`.
143157

144158
Prometheus to Flashduty severity mapping:
145159

0 commit comments

Comments
 (0)