appsignal / probes-rs

Rust library to read out system stats from a machine running Unix
MIT License
15 stars 2 forks source link

Add os::read_inodes method to read inodes usage #52

Closed adamyeats closed 4 years ago

adamyeats commented 4 years ago

Adds crate::os:read_inodes() method to read the output of df -i into a vector of DiskInodeUsages.

A quick word on fixtures/linux/disk_usage/df_garbage: I changed the fixture, as parse_percentage_segment (containing the Err that would make the test pass normally) is not called by parse_df_output anymore; it's called a level up instead.

Closes #43.