Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
diskusage beacon does not recognize tmpfs disks in linux. #48536
Description of Issue/Question
The beacon diskusage does not monitor the usage of tmpfs based disks.
Steps to Reproduce Issue
Because of the regex stuff psutil is asked for a partitions list. But that list only includes items that are physical
Appears this commit is what changed the behavior from 2016.11 to 2018.3.*
The behavior before the commit was to walk through the list of monitored directory/filesystems. The behavior after the change is to compare the list of what is being monitored to the list of mount points in an effort to support pattern matching. Since the psutil doesn't return all types of mount points, this doesn't work with tmpfs mounts.
Try this first _current_usage = psutil.disk_usage(mount) then attempt the loop if it doesn't return a result which looks like what it would have done before the commit with the exception that it wouldn't match /opt/symphony-*. Still, the behavior from 2016.11 would be preserved
This actually appears really simple, updating