Skip to content

feat: add disk I/O utilization percentage - #1866

Merged
henrygd merged 4 commits into
henrygd:mainfrom
svenvg93:1855-disk-utilization-percentage
Apr 4, 2026
Merged

henrygd merged 4 commits into
henrygd:mainfrom
svenvg93:1855-disk-utilization-percentage

Conversation

@svenvg93

Copy link
Copy Markdown
Collaborator

📃 Description

Adds a Disk I/O Utilization chart showing the percentage of wall-clock time each disk spends processing I/O . A value of 0% means idle, 100% means fully saturated.

Separate read and write utilization lines are shown, matching the style of the existing Disk I/O throughput chart. The chart appears for the root filesystem and each extra filesystem. Supported on Linux, macOS, and FreeBSD (Windows does not expose this counter).

closes #1855

🪵 Changelog

➕ Added

  • Disk I/O Utilization chart (read % and write %) for root filesystem and extra filesystems, using ReadTime/WriteTime from gopsutil (already available via /proc/diskstats on Linux, no new syscalls needed)

📷 Screenshots

Scherm­afbeelding 2026-03-31 om 21 05 12

@svenvg93
svenvg93 requested a review from henrygd as a code owner March 31, 2026 19:07
@henrygd

henrygd commented Mar 31, 2026

Copy link
Copy Markdown
Owner

Cool, thank you! I'll take a look tomorrow.

@henrygd henrygd moved this to In Progress in Beszel Roadmap Mar 31, 2026
svenvg93 and others added 3 commits April 3, 2026 20:34
adds a few more metrics that open in a sheet from the regular io chart.

also some refactoring and consolidation of disk charts into
disk-charts.tsx
@henrygd

henrygd commented Apr 4, 2026

Copy link
Copy Markdown
Owner

Thanks again, I also added a few more metrics. It's a little confusing how they all work, so I'm not sure I have the charts labeled 100% accurately, but here are the resources I found helpful if anyone is wondering:

https://www.kernel.org/doc/Documentation/iostats.txt
https://brian-candler.medium.com/interpreting-prometheus-metrics-for-linux-disk-i-o-utilization-4db53dfedcfc

Some of the properties aren't available or populated by gopsutil on all platforms. And the Windows numbers seem off, but that may just be my one Windows laptop.

@henrygd
henrygd merged commit c4009f2 into henrygd:main Apr 4, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Beszel Roadmap Apr 4, 2026
@svenvg93
svenvg93 deleted the 1855-disk-utilization-percentage branch April 5, 2026 08:01
rizkyilhampra pushed a commit to rizkyilhampra/beszel that referenced this pull request Apr 14, 2026
Co-authored-by: henrygd <hank@henrygd.me>
xiaoran7 pushed a commit to xiaoran7/beszel that referenced this pull request Oct 17, 2026
Co-authored-by: henrygd <hank@henrygd.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Feature]: Add disk I/O time utilization metric (like Prometheus node_disk_io_time_seconds_total rate)

2 participants