Conversation
This commit adds a variety of real disk metrics for the block devices that back Elasticsearch data paths. A collection of statistics are read from /proc/diskstats and are used to report the raw metrics for operations and read/write bytes. Relates elastic#15915
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||||||
User description
PR_015
PR Type
Enhancement
Description
Add I/O statistics collection from
/proc/diskstatson LinuxTrack device read/write operations and sectors per block device
Calculate delta metrics between consecutive probe intervals
Expose aggregated and per-device I/O stats in filesystem monitoring
Diagram Walkthrough
File Walkthrough
5 files
Extract device numbers from mountinfoStore major and minor device numbersAdd DeviceStats and IoStats classesImplement I/O statistics collection from diskstatsPass previous stats for delta calculation1 files
Remove unnecessary comments and formatting4 files
Update FsInfo constructor calls with IoStatsAdd unit tests for DeviceStats calculationsAdd tests for I/O statistics collectionUpdate FsInfo constructor call with IoStats1 files
Grant read permission for /proc/diskstats1 files
Document new I/O statistics fields