mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-02 19:28:16 +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:
@@ -905,6 +905,11 @@ func (p *criStatsProvider) addCadvisorContainerStats(
|
|||||||
if memory != nil {
|
if memory != nil {
|
||||||
cs.Memory = memory
|
cs.Memory = memory
|
||||||
}
|
}
|
||||||
|
|
||||||
|
swap := cadvisorInfoToSwapStats(caPodStats)
|
||||||
|
if swap != nil {
|
||||||
|
cs.Swap = swap
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *criStatsProvider) addCadvisorContainerCPUAndMemoryStats(
|
func (p *criStatsProvider) addCadvisorContainerCPUAndMemoryStats(
|
||||||
|
|||||||
Reference in New Issue
Block a user