diff --git a/stats.go b/stats.go index 70c4738..e2f40af 100644 --- a/stats.go +++ b/stats.go @@ -27,4 +27,7 @@ type Stats struct { SwapInDelay time.Duration FreePagesDelayCount uint64 FreePagesDelay time.Duration + ReadBytes uint64 + WriteBytes uint64 + CancelledWriteBytes uint64 } diff --git a/stats_linux.go b/stats_linux.go index 8443197..fe0ee86 100644 --- a/stats_linux.go +++ b/stats_linux.go @@ -38,6 +38,9 @@ func parseStats(ts unix.Taskstats) (*Stats, error) { SwapInDelay: nanoseconds(ts.Swapin_delay_total), FreePagesDelayCount: ts.Freepages_count, FreePagesDelay: nanoseconds(ts.Freepages_delay_total), + ReadBytes: ts.Read_bytes, + WriteBytes: ts.Write_bytes, + CancelledWriteBytes: ts.Cancelled_write_bytes, } return stats, nil