Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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.

<div class="hide">

## 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.

<details>
<summary>Expand</summary>

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

</details>

### Using Shared Integration

Choose this method when you need to route alerts to different channels based on the alert event payload.

<details>
<summary>Expand</summary>

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

</details>

</div>

## 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 <span class='integration_url'>push URL</span> 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
---
<div class="md-block">

Alibaba Cloud Prometheus to Flashduty severity mapping:

| Alibaba Cloud Monitor | Flashduty | Status |
| --------------------- | --------- | -------- |
| Critical | Critical | Critical |
| Error | Critical | Critical |
| Warning | Warning | Warning |
| Normal | Info | Info |

</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
---
title: "京东云监控告警集成"
description: "通过 webhook 的方式同步京东云监控告警事件到 Flashduty,实现告警事件自动化降噪处理"
date: "2025-05-19T10:00:00+08:00"
url: "https://docs.flashcat.cloud/zh/flashduty/aliyun-prometheus-integration-guide"
---

通过 webhook 的方式同步京东云监控告警事件到 Flashduty,实现告警事件自动化降噪处理。

<div class="hide">

## 在 Flashduty
---
您可通过以下2种方式,获取一个集成推送地址,任选其一即可。

### 使用专属集成

当您不需要将告警事件路由到不同的协作空间,优先选择此方式,更简单。

<details>
<summary>展开</summary>

1. 进入 Flashduty 控制台,选择 **协作空间**,进入某个空间的详情页面
2. 选择 **集成数据** tab,点击 **添加一个集成**,进入添加集成页面
3. 选择 **京东云监控** 集成,点击 **保存**,生成卡片。
4. 点击生成的卡片,可以查看到 **推送地址**,复制备用,完成。


</details>

### 使用共享集成

当您需要根据告警事件的 Payload 信息,将告警路由到不同的协作空间,优先选择此方式。

<details>
<summary>展开</summary>

1. 进入 Flashduty 控制台,选择 **集成中心=>告警事件**,进入集成选择页面。
2. 选择 **京东云监控** 集成:
- **集成名称**:为当前集成定义一个名称。
3. 配置默认路由,并选择对应的协作空间(集成创建后可以前往 `路由` 进行更多路由规则的配置)。
4. 点击 **保存** 后,复制当前页面的新生成的 **推送地址** 备用。
5. 完成。

</details>

</div>

## 在京东云
---

一、在京东云监控配置告警推送

### 步骤 1:创建通知模版
1. 登录您的京东云控制台,检索 `云监控` 产品,并进入对应产品控制台。
2. 在左侧菜单中选择 `告警管理->通知模版`,选择创建或编辑通知模版。
3. 在页面中勾选 `告警回调`, `URL`中输入告警集成的<span class='integration_url'>推送地址</span>。
4. `POST` 编辑框中输入以下模版内容。
```
{
"resource_id": "${resourceId}",
"request_id": "${requestId}",
"metric": "${metric}",
"current_value": "${currentValue}",
"times": "${times}",
"tags": "${tags}",
"alert_time": "${alertTime}",
"region": "${region}",
"threshold": "${threshold}",
"service_code": "${serviceCode}",
"as_group_id": "${asGroupId}",
"unhealthy_instance": "${unhealthyInstance}",
"rule_policy_id": "${rulePolicyId}",
"service_code_en": "${serviceCodeEN}",
"service_code_cn": "${serviceCodeCN}",
"level": "${level}",
"resource_name": "${resourceName}",
"ip_address": "${ipAddress}",
"status": "${status}"
}

```
5. 其他选项按需配置。
6. 点击 `保存` 完成配置。

### 步骤 2:配置告警规则
1. 登录您的京东云控制台,检索 `云监控` 产品,并进入对应产品控制台。
2. 在左侧菜单中选择 `告警管理->全部告警规则`,选择创建或编辑告警规则。
3. 在规则编辑页面中的 `通知策略` 处选择 `使用模版` 且模版选择**步骤1**创建的模版。
4. 其他选项按需配置。
5. 点击 `保存` 完成配置。

## 二、状态对照
---
<div class="md-block">

京东云监控 到 Flashduty 告警等级映射关系:

| 京东云监控 | Flashduty | 状态 |
| --------------- | --------- | ---- |
| 紧急 | Critical | 紧急 |
| 严重 | Warning | 警告 |
| 一般 | Info | 提醒 |

</div>

Original file line number Diff line number Diff line change
@@ -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,实现告警事件自动化降噪处理。

<div class="hide">

## 在 Flashduty
---
您可通过以下2种方式,获取一个集成推送地址,任选其一即可。

### 使用专属集成

当您不需要将告警事件路由到不同的协作空间,优先选择此方式,更简单。

<details>
<summary>展开</summary>

1. 进入 Flashduty 控制台,选择 **协作空间**,进入某个空间的详情页面
2. 选择 **集成数据** tab,点击 **添加一个集成**,进入添加集成页面
3. 选择 **阿里云监控 Prometheus** 集成,点击 **保存**,生成卡片。
4. 点击生成的卡片,可以查看到 **推送地址**,复制备用,完成。


</details>

### 使用共享集成

当您需要根据告警事件的 Payload 信息,将告警路由到不同的协作空间,优先选择此方式。

<details>
<summary>展开</summary>

1. 进入 Flashduty 控制台,选择 **集成中心=>告警事件**,进入集成选择页面。
2. 选择 **阿里云监控 Prometheus** 集成:
- **集成名称**:为当前集成定义一个名称。
3. 配置默认路由,并选择对应的协作空间(集成创建后可以前往 `路由` 进行更多路由规则的配置)。
4. 点击 **保存** 后,复制当前页面的新生成的 **推送地址** 备用。
5. 完成。

</details>

</div>

## 在阿里云
---

一、在阿里云监控配置告警推送

### 步骤 1:创建自定义 Webhook
1. 登录您的阿里云控制台,检索 `云监控` 产品,并进入对应产品控制台。
2. 在左侧菜单中选择 `Prometheus 监控->通知对象`,选择创建或编辑`自定义 Webhook`。
3. 在编辑页面中,名称和标识符填写 `Flashduty`, `URL`中输入告警集成的<span class='integration_url'>推送地址</span>。
4. `Headers` 中的 **Header Key** 填写 **Content-Type**,**Header Value** 填写 **application/json**。
5. `Method` 选择 **POST**,`数据格式` 选择 **JSON**。
6. 点击 `确定` 完成配置。

### 步骤 2:配置报警规则
1. 登录您的阿里云控制台,检索 `云监控` 产品,并进入对应产品控制台。
2. 在左侧菜单中选择 `Prometheus 监控->报警规则`,选择创建或编辑告警规则。
3. 在规则编辑页面中的 `通知模式` 处选择 `极简模式` 。
4. `通知对象` 选择**步骤1**创建的自定义 Webhook。
5. 点击 `确定` 完成配置。

## 二、状态对照
---
<div class="md-block">

阿里云 Prometheus 监控到 Flashduty 告警等级映射关系:

| 阿里云监控 | Flashduty | 状态 |
| --------------- | --------- | ---- |
| 紧急 | Critical | 紧急 |
| 错误 | Critical | 紧急 |
| 警告 | Warning | 警告 |
| 普通 | Info | 提醒 |

</div>
5 changes: 3 additions & 2 deletions src/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -168,6 +168,7 @@ const docs = {
VolcEngineRTC,
UcloudCloudWatch,
Nagios,
JDCloudMonitor
JDCloudMonitor,
AliyunPrometheus
};
export default docs;
5 changes: 3 additions & 2 deletions src/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -166,6 +166,7 @@ const docs = {
VolcEngineRTC,
UcloudCloudWatch,
Nagios,
JDCloudMonitor
JDCloudMonitor,
AliyunPrometheus
};
export default docs;