Skip to content

Commit 9ec70f6

Browse files
authored
doc: Update glances.md (#1016)
Add alert mail configuration
1 parent f82ffcc commit 9ec70f6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/glances.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,20 @@ Glances 的配置文件位于 `~/.config/glances/glances.conf`。通过编辑这
7171
```ini
7272
[global]
7373
refresh=2 # 设置刷新间隔(以秒为单位)
74+
75+
[alert]
76+
enable = True
77+
78+
# 邮件告警配置(放在 alert 下)
79+
mail = True
80+
mail_from =
81+
mail_to =
82+
mail_server =
83+
mail_port = 465
84+
mail_user =
85+
mail_password =
86+
mail_tls = True
87+
7488
[cpu]
7589
enable=true # 显示 CPU 负载平均值
7690
[mem]

0 commit comments

Comments
 (0)