We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a3f8e95 + f608736 commit ef9e794Copy full SHA for ef9e794
pkg/kubelet/stats/helper.go
@@ -51,7 +51,7 @@ func cadvisorInfoToCPUandMemoryStats(info *cadvisorapiv2.ContainerInfo) (*statsa
51
cpuStats.UsageCoreNanoSeconds = &cstat.Cpu.Usage.Total
52
}
53
54
- if info.Spec.HasMemory {
+ if info.Spec.HasMemory && cstat.Memory != nil {
55
pageFaults := cstat.Memory.ContainerData.Pgfault
56
majorPageFaults := cstat.Memory.ContainerData.Pgmajfault
57
memoryStats = &statsapi.MemoryStats{
0 commit comments