src/bin/proxmox-backup-proxy.rs: simplify code

and gather all stats for the root disk
This commit is contained in:
Dietmar Maurer
2020-05-28 12:30:54 +02:00
parent 547e3c2f6c
commit 91e5bb49f5
3 changed files with 92 additions and 69 deletions

View File

@ -34,9 +34,11 @@ fn get_node_stats(
"memtotal", "memused",
"swaptotal", "swapused",
"netin", "netout",
"roottotal", "rootused",
"loadavg",
],
"total", "used",
"read_ios", "read_bytes", "read_ticks",
"write_ios", "write_bytes", "write_ticks",
],
timeframe,
cf,
)