From e38a66dbcb2a0ab8d8318403e77fab463f56fee0 Mon Sep 17 00:00:00 2001 From: nickpetrovic <4001122+nickpetrovic@users.noreply.github.com> Date: Wed, 9 Oct 2024 16:02:08 -0400 Subject: [PATCH] Fix: Use the correct metric for disk IO (#607) All IO (network, file operations, pipes/sockets) was incorrectly mapped to Disk IO. Resolve BE-1935 --- pkg/worker/events.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/worker/events.go b/pkg/worker/events.go index 6e4811986..b8d79eb55 100644 --- a/pkg/worker/events.go +++ b/pkg/worker/events.go @@ -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,