From 9fc6ae32d582221ca9d807a1f269941e6a285d5b Mon Sep 17 00:00:00 2001 From: pijiang <419471640@qq.com> Date: Tue, 31 Mar 2026 15:23:31 +0800 Subject: [PATCH] add aliyun-prometheus docs --- ...59 Alibaba Cloud Prometheus Integration.md | 79 ++++++++++++++++++ ...6\210\220\346\214\207\345\274\225 copy.md" | 3 +- ...06\346\210\220\346\214\207\345\274\225.md" | 82 +++++++++++++++++++ src/en.ts | 5 +- src/zh.ts | 5 +- 5 files changed, 169 insertions(+), 5 deletions(-) create mode 100644 flashduty/en/1. On-call/8. Integrations/8.1 Alerts integration/8.1.59 Alibaba Cloud Prometheus Integration.md rename "flashduty/zh/1. On-call/5. \351\233\206\346\210\220\345\274\225\345\257\274/8.1 \345\221\212\350\255\246\351\233\206\346\210\220/8.1.58 \344\272\254\344\270\234\344\272\221\347\233\221\346\216\247\345\221\212\350\255\246\351\233\206\346\210\220\346\214\207\345\274\225.md" => "flashduty/zh/1. On-call/5. \351\233\206\346\210\220\345\274\225\345\257\274/8.1 \345\221\212\350\255\246\351\233\206\346\210\220/8.1.58 \344\272\254\344\270\234\344\272\221\347\233\221\346\216\247\345\221\212\350\255\246\351\233\206\346\210\220\346\214\207\345\274\225 copy.md" (97%) create mode 100644 "flashduty/zh/1. On-call/5. \351\233\206\346\210\220\345\274\225\345\257\274/8.1 \345\221\212\350\255\246\351\233\206\346\210\220/8.1.59 \351\230\277\351\207\214\344\272\221 Prometheus \347\233\221\346\216\247\345\221\212\350\255\246\351\233\206\346\210\220\346\214\207\345\274\225.md" diff --git a/flashduty/en/1. On-call/8. Integrations/8.1 Alerts integration/8.1.59 Alibaba Cloud Prometheus Integration.md b/flashduty/en/1. On-call/8. Integrations/8.1 Alerts integration/8.1.59 Alibaba Cloud Prometheus Integration.md new file mode 100644 index 00000000..43730282 --- /dev/null +++ b/flashduty/en/1. On-call/8. Integrations/8.1 Alerts integration/8.1.59 Alibaba Cloud Prometheus Integration.md @@ -0,0 +1,79 @@ +--- +title: "Alibaba Cloud Monitor Prometheus" +description: "Sync Alibaba Cloud Monitor Prometheus alert events to Flashduty via webhook for automated alert noise reduction" +date: "2025-05-19T10:00:00+08:00" +url: "https://docs.flashcat.cloud/en/flashduty/aliyun-prometheus-integration-guide" +--- + +Sync Alibaba Cloud Monitor Prometheus alert events to Flashduty via webhook for automated alert noise reduction. + +
+ +## In Flashduty +--- +You can obtain an integration push URL through either of these two methods: + +### Using Private Integration + +Choose this method when you don't need to route alert events to different channels - it's simpler. + +
+ Expand + + 1. Go to the Flashduty console, select **Channel**, and enter a channel's details page + 2. Select the **Integrations** tab, click **Add Integration** to enter the integration page + 3. Choose **Alibaba Cloud Monitor Prometheus** integration and click **Save** to generate a card + 4. Click the generated card to view the **Push URL**, copy it for later use, and you're done + +
+ +### Using Shared Integration + +Choose this method when you need to route alerts to different channels based on the alert event payload. + +
+ Expand + + 1. Go to the Flashduty console, select **Integration Center=>Alert Events** to enter the integration selection page + 2. Select **Alibaba Cloud Monitor Prometheus** integration: + - **Integration Name**: Define a name for this integration + 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) + 4. Click **Save** and copy the newly generated **push URL** for later use + 5. Done + +
+ +
+ +## In Alibaba Cloud +--- + +### Step 1: Create a Custom Webhook +1. Login to your Alibaba Cloud console, search for `Cloud Monitor` product, and enter the corresponding product console. +2. In the left menu, select `Prometheus Monitoring->Notification Objects`, and create or edit a `Custom Webhook`. +3. On the edit page, enter `Flashduty` for both the name and identifier, and enter the push URL for the alert integration in the `URL` field. +4. In the `Headers` section, set **Header Key** to **Content-Type** and **Header Value** to **application/json**. +5. Select **POST** for `Method` and **JSON** for `Data Format`. +6. Click `OK` to complete the configuration. + +### Step 2: Configure Alert Rules +1. Login to your Alibaba Cloud console, search for `Cloud Monitor` product, and enter the corresponding product console. +2. In the left menu, select `Prometheus Monitoring->Alert Rules`, and create or edit an alert rule. +3. In the **Notification Mode** section of the rule configuration page, select `Simple Mode`. +4. For `Notification Object`, select the custom webhook created in **Step 1**. +5. Click `OK` to complete the configuration. + +## Severity Mapping +--- +
+ +Alibaba Cloud Prometheus to Flashduty severity mapping: + +| Alibaba Cloud Monitor | Flashduty | Status | +| --------------------- | --------- | -------- | +| Critical | Critical | Critical | +| Error | Critical | Critical | +| Warning | Warning | Warning | +| Normal | Info | Info | + +
diff --git "a/flashduty/zh/1. On-call/5. \351\233\206\346\210\220\345\274\225\345\257\274/8.1 \345\221\212\350\255\246\351\233\206\346\210\220/8.1.58 \344\272\254\344\270\234\344\272\221\347\233\221\346\216\247\345\221\212\350\255\246\351\233\206\346\210\220\346\214\207\345\274\225.md" "b/flashduty/zh/1. On-call/5. \351\233\206\346\210\220\345\274\225\345\257\274/8.1 \345\221\212\350\255\246\351\233\206\346\210\220/8.1.58 \344\272\254\344\270\234\344\272\221\347\233\221\346\216\247\345\221\212\350\255\246\351\233\206\346\210\220\346\214\207\345\274\225 copy.md" similarity index 97% rename from "flashduty/zh/1. On-call/5. \351\233\206\346\210\220\345\274\225\345\257\274/8.1 \345\221\212\350\255\246\351\233\206\346\210\220/8.1.58 \344\272\254\344\270\234\344\272\221\347\233\221\346\216\247\345\221\212\350\255\246\351\233\206\346\210\220\346\214\207\345\274\225.md" rename to "flashduty/zh/1. On-call/5. \351\233\206\346\210\220\345\274\225\345\257\274/8.1 \345\221\212\350\255\246\351\233\206\346\210\220/8.1.58 \344\272\254\344\270\234\344\272\221\347\233\221\346\216\247\345\221\212\350\255\246\351\233\206\346\210\220\346\214\207\345\274\225 copy.md" index 1723c489..13857817 100644 --- "a/flashduty/zh/1. On-call/5. \351\233\206\346\210\220\345\274\225\345\257\274/8.1 \345\221\212\350\255\246\351\233\206\346\210\220/8.1.58 \344\272\254\344\270\234\344\272\221\347\233\221\346\216\247\345\221\212\350\255\246\351\233\206\346\210\220\346\214\207\345\274\225.md" +++ "b/flashduty/zh/1. On-call/5. \351\233\206\346\210\220\345\274\225\345\257\274/8.1 \345\221\212\350\255\246\351\233\206\346\210\220/8.1.58 \344\272\254\344\270\234\344\272\221\347\233\221\346\216\247\345\221\212\350\255\246\351\233\206\346\210\220\346\214\207\345\274\225 copy.md" @@ -2,7 +2,7 @@ title: "京东云监控告警集成" description: "通过 webhook 的方式同步京东云监控告警事件到 Flashduty,实现告警事件自动化降噪处理" date: "2025-05-19T10:00:00+08:00" -url: "https://docs.flashcat.cloud/zh/flashduty/jdcloud-integration-guide" +url: "https://docs.flashcat.cloud/zh/flashduty/aliyun-prometheus-integration-guide" --- 通过 webhook 的方式同步京东云监控告警事件到 Flashduty,实现告警事件自动化降噪处理。 @@ -103,3 +103,4 @@ url: "https://docs.flashcat.cloud/zh/flashduty/jdcloud-integration-guide" | 一般 | Info | 提醒 | + diff --git "a/flashduty/zh/1. On-call/5. \351\233\206\346\210\220\345\274\225\345\257\274/8.1 \345\221\212\350\255\246\351\233\206\346\210\220/8.1.59 \351\230\277\351\207\214\344\272\221 Prometheus \347\233\221\346\216\247\345\221\212\350\255\246\351\233\206\346\210\220\346\214\207\345\274\225.md" "b/flashduty/zh/1. On-call/5. \351\233\206\346\210\220\345\274\225\345\257\274/8.1 \345\221\212\350\255\246\351\233\206\346\210\220/8.1.59 \351\230\277\351\207\214\344\272\221 Prometheus \347\233\221\346\216\247\345\221\212\350\255\246\351\233\206\346\210\220\346\214\207\345\274\225.md" new file mode 100644 index 00000000..746fcb67 --- /dev/null +++ "b/flashduty/zh/1. On-call/5. \351\233\206\346\210\220\345\274\225\345\257\274/8.1 \345\221\212\350\255\246\351\233\206\346\210\220/8.1.59 \351\230\277\351\207\214\344\272\221 Prometheus \347\233\221\346\216\247\345\221\212\350\255\246\351\233\206\346\210\220\346\214\207\345\274\225.md" @@ -0,0 +1,82 @@ +--- +title: "阿里云监控 Prometheus" +description: "通过 webhook 的方式同步阿里云监控 Prometheus 告警事件到 Flashduty,实现告警事件自动化降噪处理" +date: "2025-05-19T10:00:00+08:00" +url: "https://docs.flashcat.cloud/zh/flashduty/jdcloud-integration-guide" +--- + +通过 webhook 的方式同步阿里云监控 Prometheus 告警事件到 Flashduty,实现告警事件自动化降噪处理。 + +
+ +## 在 Flashduty +--- +您可通过以下2种方式,获取一个集成推送地址,任选其一即可。 + +### 使用专属集成 + +当您不需要将告警事件路由到不同的协作空间,优先选择此方式,更简单。 + +
+ 展开 + + 1. 进入 Flashduty 控制台,选择 **协作空间**,进入某个空间的详情页面 + 2. 选择 **集成数据** tab,点击 **添加一个集成**,进入添加集成页面 + 3. 选择 **阿里云监控 Prometheus** 集成,点击 **保存**,生成卡片。 + 4. 点击生成的卡片,可以查看到 **推送地址**,复制备用,完成。 + + +
+ +### 使用共享集成 + +当您需要根据告警事件的 Payload 信息,将告警路由到不同的协作空间,优先选择此方式。 + +
+ 展开 + + 1. 进入 Flashduty 控制台,选择 **集成中心=>告警事件**,进入集成选择页面。 + 2. 选择 **阿里云监控 Prometheus** 集成: + - **集成名称**:为当前集成定义一个名称。 + 3. 配置默认路由,并选择对应的协作空间(集成创建后可以前往 `路由` 进行更多路由规则的配置)。 + 4. 点击 **保存** 后,复制当前页面的新生成的 **推送地址** 备用。 + 5. 完成。 + +
+ +
+ +## 在阿里云 +--- + +一、在阿里云监控配置告警推送 + +### 步骤 1:创建自定义 Webhook +1. 登录您的阿里云控制台,检索 `云监控` 产品,并进入对应产品控制台。 +2. 在左侧菜单中选择 `Prometheus 监控->通知对象`,选择创建或编辑`自定义 Webhook`。 +3. 在编辑页面中,名称和标识符填写 `Flashduty`, `URL`中输入告警集成的推送地址。 +4. `Headers` 中的 **Header Key** 填写 **Content-Type**,**Header Value** 填写 **application/json**。 +5. `Method` 选择 **POST**,`数据格式` 选择 **JSON**。 +6. 点击 `确定` 完成配置。 + +### 步骤 2:配置报警规则 +1. 登录您的阿里云控制台,检索 `云监控` 产品,并进入对应产品控制台。 +2. 在左侧菜单中选择 `Prometheus 监控->报警规则`,选择创建或编辑告警规则。 +3. 在规则编辑页面中的 `通知模式` 处选择 `极简模式` 。 +4. `通知对象` 选择**步骤1**创建的自定义 Webhook。 +5. 点击 `确定` 完成配置。 + +## 二、状态对照 +--- +
+ +阿里云 Prometheus 监控到 Flashduty 告警等级映射关系: + +| 阿里云监控 | Flashduty | 状态 | +| --------------- | --------- | ---- | +| 紧急 | Critical | 紧急 | +| 错误 | Critical | 紧急 | +| 警告 | Warning | 警告 | +| 普通 | Info | 提醒 | + +
diff --git a/src/en.ts b/src/en.ts index 37a0da41..3ad9fb93 100644 --- a/src/en.ts +++ b/src/en.ts @@ -57,8 +57,8 @@ import VolcEngineRTC from "../flashduty/en/1. On-call/8. Integrations/8.1 Alerts import UcloudCloudWatch from "../flashduty/en/1. On-call/8. Integrations/8.1 Alerts integration/8.1.56 Ucloud CloudWatch Integration.md?raw"; import Nagios from "../flashduty/en/1. On-call/8. Integrations/8.1 Alerts integration/8.1.57 Nagios Integration.md?raw"; import JDCloudMonitor from "../flashduty/en/1. On-call/8. Integrations/8.1 Alerts integration/8.1.58 JD Cloud Monitoring Integration.md?raw"; +import AliyunPrometheus from "../flashduty/en/1. On-call/8. Integrations/8.1 Alerts integration/8.1.59 Alibaba Cloud Prometheus Integration.md?raw"; /** ⬆️⬆️⬆️⬆️ 告警集成 ⬆️⬆️⬆️⬆️ */ - /** ⬇️⬇️⬇️⬇️ 变更事件 ⬇️⬇️⬇️⬇️ */ import CustomChange from "../flashduty/en/1. On-call/8. Integrations/8.2 Change integration/8.2.1 Standard Change Event.md?raw"; import Jira from "../flashduty/en/1. On-call/8. Integrations/8.2 Change integration/8.2.2 Jira Issue Events.md?raw"; @@ -168,6 +168,7 @@ const docs = { VolcEngineRTC, UcloudCloudWatch, Nagios, - JDCloudMonitor + JDCloudMonitor, + AliyunPrometheus }; export default docs; diff --git a/src/zh.ts b/src/zh.ts index cc9540fb..b251db48 100644 --- a/src/zh.ts +++ b/src/zh.ts @@ -57,8 +57,8 @@ import VolcEngineRTC from "../flashduty/zh/1. On-call/5. 集成引导/8.1 告警 import UcloudCloudWatch from "../flashduty/zh/1. On-call/5. 集成引导/8.1 告警集成/8.1.56 Ucloud CloudWatch 告警集成指引.md?raw"; import Nagios from "../flashduty/zh/1. On-call/5. 集成引导/8.1 告警集成/8.1.57 Nagios 告警集成指引.md?raw"; import JDCloudMonitor from "../flashduty/zh/1. On-call/5. 集成引导/8.1 告警集成/8.1.58 京东云监控告警集成指引.md?raw"; +import AliyunPrometheus from "../flashduty/zh/1. On-call/5. 集成引导/8.1 告警集成/8.1 告警集成/8.1.59 阿里云 Prometheus 监控告警集成指引.md?raw"; /** ⬆️⬆️⬆️⬆️ 告警集成 ⬆️⬆️⬆️⬆️ */ - /** ⬇️⬇️⬇️⬇️ 变更事件 ⬇️⬇️⬇️⬇️ */ import CustomChange from "../flashduty/zh/1. On-call/5. 集成引导/8.2 变更集成/8.2.1 自定义事件集成指引.md?raw"; import Jira from "../flashduty/zh/1. On-call/5. 集成引导/8.2 变更集成/8.2.2 Jira 事件集成指引.md?raw"; @@ -166,6 +166,7 @@ const docs = { VolcEngineRTC, UcloudCloudWatch, Nagios, - JDCloudMonitor + JDCloudMonitor, + AliyunPrometheus }; export default docs;