mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-26 20:54:08 +00:00
cadvisor_provider, bugfix: Add swap stats to CPU and Memory stats
Signed-off-by: Itamar Holder <iholder@redhat.com>
This commit is contained in:
@@ -155,6 +155,7 @@ func cadvisorInfoToContainerCPUAndMemoryStats(name string, info *cadvisorapiv2.C
|
||||
cpu, memory := cadvisorInfoToCPUandMemoryStats(info)
|
||||
result.CPU = cpu
|
||||
result.Memory = memory
|
||||
result.Swap = cadvisorInfoToSwapStats(info)
|
||||
|
||||
return result
|
||||
}
|
||||
|
Reference in New Issue
Block a user