feat: memory alerts with top-memory process, top offender in alerts, scheduled status reports

This commit is contained in:
snowy-yang committed 2026-09-12 20:06:31 +08:00
1 parent e61142399a
commit f26f34cb87
8 files changed
+169 -37

No files matched your search

+12
View File
@@ -10,6 +10,8 @@ access_token = ""
[alert]
# CPU 告警阈值(%)
cpu_threshold = 85.0
# 内存告警阈值(%),设为 0 关闭内存告警
memory_threshold = 90.0
# 需要连续超过阈值多少个采样周期才告警
consecutive = 2
# 采样间隔(秒)
@@ -22,6 +24,16 @@ top_n = 5
groups = [123456789]
friends = []
[report]
# 定时推送状态报告
enabled = false
# 推送间隔(分钟)
interval_minutes = 60
# 推送目标(留空则用 [alert] 的目标)
groups = []
friends = []
[update]
# Git 热更新:定期检查远端是否有新版本,更新前先推送通知,再拉取并自动重启
enabled = true