appsignal / probes-rs

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

Do not error when usage percentage is `-` in `df -i` output #68

Closed unflxw closed 1 year ago

unflxw commented 1 year ago

When the free and used inodes are zero, the usage percentage is set to -. This trips our parser, which does not expect that. As a result, the whole of the disk inodes information is thrown away.

We should make it so that this line is ignored, but the rest of the disk inodes information is sent correctly.


Intercom conversation: https://app.intercom.com/a/inbox/yzor8gyw/inbox/shared/unassigned/conversation/16410700248088?view=List Slack conversation: https://appsignal.slack.com/archives/C7XHXQ7N0/p1694091291131559?thread_ts=1694075713.461959&cid=C7XHXQ7N0

backlog-helper[bot] commented 1 year ago

:heavy_check_mark: All good!

New issue guide | Backlog management | Rules | Feedback

jvanbaarsen commented 1 year ago

User replied and mentioned that they also tried running this on a new Deb11 instance, and there it runs without any problems.