Skip to content

Commit

Permalink
Fix: Use the correct metric for disk IO (#607)
Browse files Browse the repository at this point in the history
All IO (network, file operations, pipes/sockets) was incorrectly mapped
to Disk IO.

Resolve BE-1935
  • Loading branch information
nickpetrovic authored Oct 9, 2024
1 parent ddfbc91 commit e38a66d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/worker/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ func (w *Worker) collectAndSendContainerMetrics(ctx context.Context, request *ty
MemoryVMS: stats.Memory.VMS,
MemorySwap: stats.Memory.Swap,
MemoryTotal: uint64(request.Memory * 1024 * 1024),
DiskReadBytes: stats.IO.ReadBytes,
DiskWriteBytes: stats.IO.WriteBytes,
DiskReadBytes: stats.IO.DiskReadBytes,
DiskWriteBytes: stats.IO.DiskWriteBytes,
NetworkBytesRecv: stats.NetIO.BytesRecv,
NetworkBytesSent: stats.NetIO.BytesSent,
NetworkPacketsRecv: stats.NetIO.PacketsRecv,
Expand Down

0 comments on commit e38a66d

Please sign in to comment.