Skip to content

Commit c111266

Browse files
committed
cadvisor_provider, bugfix: Add swap stats to CPU and Memory stats
Signed-off-by: Itamar Holder <[email protected]>
1 parent e6c19f3 commit c111266

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/kubelet/stats/helper.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ func cadvisorInfoToContainerCPUAndMemoryStats(name string, info *cadvisorapiv2.C
155155
cpu, memory := cadvisorInfoToCPUandMemoryStats(info)
156156
result.CPU = cpu
157157
result.Memory = memory
158+
result.Swap = cadvisorInfoToSwapStats(info)
158159

159160
return result
160161
}

0 commit comments

Comments
 (0)