Skip to content

Commit

Permalink
docs(feature): 补充策略组和策略文档
Browse files Browse the repository at this point in the history
- 增加了策略组和策略的基本概念说明
- 添加了策略类型的详细介绍,包括普通监控和探测监控两大模块
- 插入了多种策略类型的示意图
- 为不同类型的监控策略提供了单独的章节,包括指标监控、日志监控、事件监控、证书监控、端口监控、HTTP监控和Ping监控
  • Loading branch information
aide-cloud committed Dec 17, 2024
1 parent f36c986 commit 33adc93
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions docs/2-feature/3-strategy.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,49 @@ sidebar_position: 3

# 策略组和策略

在moon系统中, 所有的告警规则都统一称之为策略, 策略组是策略的集合。

为什么命名为策略呢?

* 在moon系统中,同一个策略,会划分多个规则,每个规则可以有不同的阈值, 不同的告警等级, 一个策略至少包含一个规则数据(系统中称之为告警等级)
* 在一个策略组中,可以包含不同类型的策略, 比如: 监控告警、日志告警、事件告警等,由这些不同的策略完成我们完整的业务场景全方位监控,因此,我更愿意称策略组为场景。


# 策略类型

整个系统有多种不同的数据源类型,我们为这些数据源类型提供了不同的策略类型,主要划分为两个大的模块(普通监控和探测监控)

![策略类型](./img/strategy-type.png)

## 普通监控

通过获取数据源数据, 经过策略设置的阈值, 告警等级, 告警组, 告警渠道, 告警人, 完成告警。

### 指标监控

![指标监控](./img/strategy-type-metric.png)


### 日志监控 (开发中)

### 事件监控

![事件监控](./img/strategy-type-event.png)

## 探测监控

探测监控是基于特殊的探测协议,比如:tcp连接、http请求、ping、dns解析等,经过策略设置的阈值, 告警等级, 告警组, 告警渠道, 告警人, 完成告警。

### 证书监控

![证书监控](./img/strategy-type-cert.png)

### 端口监控

![端口监控](./img/strategy-type-port.png)

### HTTP监控

![HTTP监控](./img/strategy-type-http.png)

### Ping监控
Binary file added docs/2-feature/img/strategy-type-cert.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/2-feature/img/strategy-type-event.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/2-feature/img/strategy-type-http.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/2-feature/img/strategy-type-metric.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/2-feature/img/strategy-type-port.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/2-feature/img/strategy-type.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 33adc93

Please sign in to comment.