增加新告警类型 (#75)

This commit is contained in:
UUBulb 2024-07-04 14:32:14 +08:00 committed by GitHub
parent 81a45024ac
commit 75a0107dda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -187,12 +187,13 @@ You can remove or add relevant information as needed.
### Basic Rules
- `type`: You can choose one or more types. If multiple types are selected in one rule, **all selected types must be satisfied** to trigger a notification (refer to the examples below)
- `cpu`, `memory`, `swap`, `disk`
- `cpu`, `gpu`, `memory`, `swap`, `disk`
- `net_in_speed` inbound network speed, `net_out_speed` outbound network speed, `net_all_speed` total network speed, `transfer_in` inbound traffic, `transfer_out` outbound traffic, `transfer_all` total traffic
- `offline` offline monitoring
- `load1`, `load5`, `load15` load
- `process_count` process count (currently resource-intensive due to thread count, not supported temporarily)
- `tcp_conn_count`, `udp_conn_count` connection count
- `temperature_max` maximum temperature
- `duration`: Duration in seconds. An notification is triggered if 30% or more of the samples exceed the threshold within this duration (to prevent data spikes).
- `min` or `max`:
- For traffic and network speed, the unit is bytes (1KB = 1024B, 1MB = 1024 * 1024B)

View File

@ -222,12 +222,13 @@ outline: deep
### 基本规则
- `type`:可选取一个或多个类型,如在一个规则中选择了多个类型,需要**同时满足**所有选择的类型才会触发通知(可参考后面的示例)
- `cpu``memory`、`swap``disk`
- `cpu``gpu`、`memory`、`swap``disk`
- `net_in_speed` 入站网速、`net_out_speed` 出站网速、`net_all_speed` 双向网速、`transfer_in` 入站流量、`transfer_out` 出站流量、`transfer_all` 双向流量
- `offline` 离线监控
- `load1``load5``load15` 负载
- `process_count` 进程数(目前取线程数占用资源太多,暂时不支持)
- `tcp_conn_count``udp_conn_count` 连接数
- `temperature_max` 最高温度值
- `duration`:持续数秒,数秒内采样记录 30% 以上触发阈值才会告警(防数据插针)
- `min``max`
- 流量、网速类单位为字节1KB=1024B1MB=1024*1024B