优化IO异常邮件
This commit is contained in:
@@ -111,7 +111,7 @@ class GlancesMonitor:
|
||||
for disk in disks:
|
||||
read_bytes = disk.get('read_bytes', 0)
|
||||
write_bytes = disk.get('write_bytes', 0)
|
||||
io_usage = (read_bytes + write_bytes) / (1024 * 1024)
|
||||
io_usage = (read_bytes + write_bytes) / (2048 * 1024)
|
||||
max_io_usage = max(max_io_usage, io_usage)
|
||||
if max_io_usage > self.io_threshold:
|
||||
self.send_alert_email("磁盘 I/O(MB/s)", max_io_usage, self.io_threshold)
|
||||
|
||||
Reference in New Issue
Block a user