From 2c66a590c0b1212cd38537b9de34ef822fa40ef8 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 25 May 2020 11:48:44 +0200 Subject: [PATCH] src/bin/proxmox-backup-proxy.rs: gather iowait stats --- src/bin/proxmox-backup-proxy.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bin/proxmox-backup-proxy.rs b/src/bin/proxmox-backup-proxy.rs index 162c23f5..4d7f8099 100644 --- a/src/bin/proxmox-backup-proxy.rs +++ b/src/bin/proxmox-backup-proxy.rs @@ -612,11 +612,15 @@ async fn generate_host_stats() { if let Err(err) = rrd::update_value("host/cpu", stat.cpu, rrd::DST::Gauge) { eprintln!("rrd::update_value 'host/cpu' failed - {}", err); } + if let Err(err) = rrd::update_value("host/iowait", stat.iowait_percent, rrd::DST::Gauge) { + eprintln!("rrd::update_value 'host/iowait' failed - {}", err); + } } Err(err) => { eprintln!("read_proc_stat failed - {}", err); } } + match read_meminfo() { Ok(meminfo) => { if let Err(err) = rrd::update_value("host/memtotal", meminfo.memtotal as f64, rrd::DST::Gauge) {