Commit 3d50e245 authored by Maxime Hubert's avatar Maxime Hubert
Browse files

Merge branch 'resources_monitoring_add_free_disk' into 'development'

Resources monitoring add free disk

See merge request !23
parents 4b3406b4 56b31d55
Pipeline #140230 passed with stage
in 33 seconds
......@@ -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