From 75a0107dda73907fc4a67ce636ec21b3d8b10f65 Mon Sep 17 00:00:00 2001 From: UUBulb <35923940+uubulb@users.noreply.github.com> Date: Thu, 4 Jul 2024 14:32:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=96=B0=E5=91=8A=E8=AD=A6?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=20(#75)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/en_US/guide/notifications.md | 3 ++- docs/guide/notifications.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/en_US/guide/notifications.md b/docs/en_US/guide/notifications.md index 0c7f1c8c..aa1cc310 100644 --- a/docs/en_US/guide/notifications.md +++ b/docs/en_US/guide/notifications.md @@ -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) diff --git a/docs/guide/notifications.md b/docs/guide/notifications.md index b2c0cbdc..ec7e1803 100755 --- a/docs/guide/notifications.md +++ b/docs/guide/notifications.md @@ -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=1024B,1MB=1024*1024B)