Commit 56b31d55 authored by Maxime Hubert's avatar Maxime Hubert
Browse files

Resources monitoring add free disk

parent 4b3406b4
......@@ -22,7 +22,11 @@ def psutil_snapshot():
'total_disk_io_write': psutil_parse_readable_bytes(
psutil.disk_io_counters(perdisk=False, nowrap=True).write_bytes
'free_disk_space': {
disk[1]: psutil_parse_readable_bytes(psutil.disk_usage(disk[1])[2])
for disk in psutil.disk_partitions()
return snapshot_dict
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment