mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-12 13:31:52 +00:00
cri_provider, bugfix: Add cadvisor container stats
Without this fix, when CRI stats provided collects cadvisor stats, pod swap stats are being collected but corresponding container swap stats are not. This commit fixes this. Signed-off-by: Itamar Holder <iholder@redhat.com>
This commit is contained in:
parent
7140b4910c
commit
748b52a130
@ -905,6 +905,11 @@ func (p *criStatsProvider) addCadvisorContainerStats(
|
||||
if memory != nil {
|
||||
cs.Memory = memory
|
||||
}
|
||||
|
||||
swap := cadvisorInfoToSwapStats(caPodStats)
|
||||
if swap != nil {
|
||||
cs.Swap = swap
|
||||
}
|
||||
}
|
||||
|
||||
func (p *criStatsProvider) addCadvisorContainerCPUAndMemoryStats(
|
||||
|
Loading…
Reference in New Issue
Block a user