Class LinuxDiskMetricsManager

  • All Implemented Interfaces:
    IDiskMetricsManager

    public class LinuxDiskMetricsManager
    extends Object
    implements IDiskMetricsManager
    All data metrics are collected from /proc/.

    /proc/diskstats is a file in Linux, it contains the running information of the disks, including device name, read operation count, merged read operation count, write operation count, merged write operation count etc. This class collects the data periodically and analyzes the changes in each pieces of data to gain an insight of the disks of status.

    /proc/[PID]/io is also a file in Linux, it indicates the io status of a specific process. The content of it contains following items: actual read byte, actual write byte, read system call count, write system call count, byte attempt to read, byte attempt to write, cancelled write byte.