Implement disk io metrics for linux#6374
Conversation
Add more tests
src/Libraries/Microsoft.Extensions.Diagnostics.ResourceMonitoring/Linux/Disk/DiskStatsReader.cs
Outdated
Show resolved
Hide resolved
src/Libraries/Microsoft.Extensions.Diagnostics.ResourceMonitoring/Linux/Log.cs
Outdated
Show resolved
Hide resolved
...Libraries/Microsoft.Extensions.Diagnostics.ResourceMonitoring/Linux/Disk/LinuxDiskMetrics.cs
Outdated
Show resolved
Hide resolved
src/Libraries/Microsoft.Extensions.Diagnostics.ResourceMonitoring/Linux/Disk/DiskStatsReader.cs
Show resolved
Hide resolved
…ing/Linux/Log.cs Co-authored-by: Amadeusz Lechniak <lechniak.amadeusz07@gmail.com>
…improved memory efficiency
…into ImplementDiskIoMetricsForLinux
|
Can we add those metrics into documentation once merged https://github.com/dotnet/docs/blob/0d95e86e545ce4cfad2da2fe1e7fcee9da2edc8c/docs/core/diagnostics/built-in-metrics-diagnostics.md ? |
|
Since
|
We already support these metrics on Windows: #6181 , #6338. I'll add these to the document as soon as possible |
No, As I commented in this, on Windows, the |
EnableSystemDiskIoMetrics - should enable system.disk* metrics - VM and container are not the same, so reporting VM from system.* metric makes sense to me |
Makes sense, I have updated renamed the |
|
When I was trying to rename
Looks like I can not simply rename an existing public API. @amadeuszl What is the correct procedure for making changes to a public API? |
|
I've got recommendation to suppress it since it's experimental. How to suppress exact variable: https://learn.microsoft.com/en-us/dotnet/fundamentals/apicompat/package-validation/baseline-version-validator. Can we also add a note to the variable |
Please help review again, thanks! |
Closes #6371
Implement the following Disk I/O metrics for Linux:
All these values come from Linux Kernel's procfs-diskstats
Tested with Grafana + Prometheus with WSL2 + Ubuntu 24.04



cc @evgenyfedorov2
Microsoft Reviewers: Open in CodeFlow