Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for latestContainerStats (0.14 sec)

  1. pkg/kubelet/stats/cadvisor_stats_provider.go

    // false otherwise.
    func hasMemoryAndCPUInstUsage(info *cadvisorapiv2.ContainerInfo) bool {
    	if !info.Spec.HasCpu || !info.Spec.HasMemory {
    		return false
    	}
    	cstat, found := latestContainerStats(info)
    	if !found {
    		return false
    	}
    	if cstat.CpuInst == nil {
    		return false
    	}
    	return cstat.CpuInst.Usage.Total != 0 && cstat.Memory.RSS != 0
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 16 13:34:22 UTC 2023
    - 18.9K bytes
    - Viewed (0)
Back to top