调整监控配置

This commit is contained in:
liuwei
2025-05-27 09:28:32 +08:00
parent 6f6eef54aa
commit 70d8e702fd
3 changed files with 8 additions and 3 deletions

View File

@@ -72,8 +72,8 @@ def main():
# 初始化 Glances 监控
monitor = GlancesMonitor(
email_sender=robot.email_sender,
host='192.168.2.170',
port=61208,
host=config.glances.get("host"),
port=config.glances.get("port"),
cpu_threshold=80.0,
load_threshold=None, # 自动设为 CPU 核心数 * 2
io_threshold=80.0,