mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-14 14:23:37 +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:
parent
e6c19f315f
commit
c111266609
@ -155,6 +155,7 @@ func cadvisorInfoToContainerCPUAndMemoryStats(name string, info *cadvisorapiv2.C
|
|||||||
cpu, memory := cadvisorInfoToCPUandMemoryStats(info)
|
cpu, memory := cadvisorInfoToCPUandMemoryStats(info)
|
||||||
result.CPU = cpu
|
result.CPU = cpu
|
||||||
result.Memory = memory
|
result.Memory = memory
|
||||||
|
result.Swap = cadvisorInfoToSwapStats(info)
|
||||||
|
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user