Skip to content

Commit e377306

Browse files
committed
add aliyun-prometheus docs
1 parent cb5778f commit e377306

3 files changed

Lines changed: 182 additions & 0 deletions

File tree

docs.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@
189189
"zh/on-call/integration/alert-integration/alert-sources/aliyun-cm-event",
190190
"zh/on-call/integration/alert-integration/alert-sources/aliyun-cm-metrics",
191191
"zh/on-call/integration/alert-integration/alert-sources/aliyun-sls",
192+
"zh/on-call/integration/alert-integration/alert-sources/aliyun-prometheus",
192193
"zh/on-call/integration/alert-integration/alert-sources/aws-cloudwatch",
193194
"zh/on-call/integration/alert-integration/alert-sources/aws-eventbridge",
194195
"zh/on-call/integration/alert-integration/alert-sources/tencent-cls",
@@ -619,6 +620,7 @@
619620
"en/on-call/integration/alert-integration/alert-sources/aliyun-cm-event",
620621
"en/on-call/integration/alert-integration/alert-sources/aliyun-cm-metrics",
621622
"en/on-call/integration/alert-integration/alert-sources/aliyun-sls",
623+
"en/on-call/integration/alert-integration/alert-sources/aliyun-prometheus",
622624
"en/on-call/integration/alert-integration/alert-sources/aws-cloudwatch",
623625
"en/on-call/integration/alert-integration/alert-sources/aws-eventbridge",
624626
"en/on-call/integration/alert-integration/alert-sources/tencent-cls",
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
---
2+
title: "Alibaba Cloud Prometheus integration"
3+
description: "Sync Alibaba Cloud Prometheus monitoring alert events to Flashduty On-call via webhook for automated alert noise reduction"
4+
keywords: ["alert integration", "Alibaba Cloud Prometheus 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 **Alibaba Cloud Monitor Prometheus** 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 **Alibaba Cloud Monitor Prometheus** 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 Alibaba Cloud
46+
---
47+
48+
<Steps>
49+
<Step title="Create a custom webhook">
50+
51+
1. Log in to the Alibaba Cloud console, search for **Cloud Monitor**, and enter the corresponding console
52+
2. In the left menu, select **Prometheus Monitoring → Notification Objects**, and create or edit a **Custom Webhook**
53+
3. Enter `Flashduty` for both the name and identifier, and enter the integration push URL in the `URL` field
54+
4. In `Headers`, set **Header Key** to `Content-Type` and **Header Value** to `application/json`
55+
5. Select **POST** for `Method` and **JSON** for `Data Format`
56+
6. Click **OK** to complete
57+
58+
</Step>
59+
60+
<Step title="Configure alert rules">
61+
62+
1. In the left menu, select **Prometheus Monitoring → Alert Rules**, and create or edit an alert rule
63+
2. In the **Notification Mode** section, select **Simple Mode**
64+
3. For **Notification Object**, select the custom webhook created in the previous step
65+
4. Click **OK** to complete
66+
67+
</Step>
68+
69+
<Step title="Verify integration">
70+
71+
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.
72+
73+
</Step>
74+
</Steps>
75+
76+
## Severity mapping
77+
---
78+
<div className="md-block">
79+
80+
Alibaba Cloud Prometheus to Flashduty severity mapping:
81+
82+
| Alibaba Cloud Monitor | Flashduty | Status |
83+
| :--- | :--- | :--- |
84+
| Critical | Critical | Critical |
85+
| Error | Critical | Critical |
86+
| Warning | Warning | Warning |
87+
| Normal | Info | Info |
88+
89+
</div>
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
---
2+
title: "阿里云 Prometheus 监控集成"
3+
description: "通过 webhook 的方式同步阿里云 Prometheus 监控告警事件到 Flashduty On-call,实现告警事件自动化降噪处理"
4+
keywords: ["告警集成", "阿里云 Prometheus 集成", "监控告警", "数据接入"]
5+
---
6+
7+
<div className="hide">
8+
9+
## 在 Flashduty On-call
10+
---
11+
您可通过以下2种方式,获取一个集成推送地址,任选其一即可。
12+
13+
### 使用专属集成
14+
15+
当您不需要将告警事件路由到不同的协作空间,优先选择此方式,更简单。
16+
17+
<AccordionGroup>
18+
<Accordion title="展开">
19+
20+
1. 进入 Flashduty 控制台,选择 **协作空间**,进入某个空间的详情页面
21+
2. 选择 **集成数据** tab,点击 **添加一个集成**,进入添加集成页面
22+
3. 选择 **阿里云监控 Prometheus** 集成,点击 **保存**,生成卡片。
23+
4. 点击生成的卡片,可以查看到 **推送地址**,复制备用,完成。
24+
25+
26+
</Accordion>
27+
</AccordionGroup>
28+
29+
### 使用共享集成
30+
31+
当您需要根据告警事件的 Payload 信息,将告警路由到不同的协作空间,优先选择此方式。
32+
33+
<AccordionGroup>
34+
<Accordion title="展开">
35+
36+
1. 进入 Flashduty 控制台,选择 **集成中心=>告警事件**,进入集成选择页面。
37+
2. 选择 **阿里云监控 Prometheus** 集成:
38+
- **集成名称**:为当前集成定义一个名称。
39+
3. 配置默认路由,并选择对应的协作空间(集成创建后可以前往 `路由` 进行更多路由规则的配置)。
40+
4. 点击 **保存** 后,复制当前页面的新生成的 **推送地址** 备用。
41+
5. 完成。
42+
43+
</Accordion>
44+
</AccordionGroup>
45+
</div>
46+
47+
## 在阿里云
48+
---
49+
50+
<Steps>
51+
<Step title="创建自定义 Webhook">
52+
53+
1. 登录阿里云控制台,检索 **云监控** 产品,进入对应控制台
54+
2. 在左侧菜单选择 **Prometheus 监控 → 通知对象**,创建或编辑 **自定义 Webhook**
55+
3. 名称和标识符填写 `Flashduty``URL` 中输入集成的推送地址
56+
4. `Headers` 中设置 **Header Key**`Content-Type`**Header Value**`application/json`
57+
5. `Method` 选择 **POST**`数据格式` 选择 **JSON**
58+
6. 点击 **确定** 完成配置
59+
60+
</Step>
61+
62+
<Step title="配置报警规则">
63+
64+
1. 在左侧菜单选择 **Prometheus 监控 → 报警规则**,创建或编辑告警规则
65+
2.**通知模式** 处选择 **极简模式**
66+
3. **通知对象** 选择上一步创建的自定义 Webhook
67+
4. 点击 **确定** 完成配置
68+
69+
</Step>
70+
71+
<Step title="验证集成">
72+
73+
回到 Flashduty 控制台集成列表页面,如果展示了最新事件时间,说明配置成功且收到事件。
74+
75+
</Step>
76+
</Steps>
77+
78+
## 状态对照
79+
---
80+
<div className="md-block">
81+
82+
阿里云 Prometheus 监控到 Flashduty 告警等级映射关系:
83+
84+
| 阿里云监控 | Flashduty | 状态 |
85+
| :--- | :--- | :--- |
86+
| 紧急 | Critical | 严重 |
87+
| 错误 | Critical | 严重 |
88+
| 警告 | Warning | 警告 |
89+
| 普通 | Info | 提醒 |
90+
91+
</div>

0 commit comments

Comments
 (0)