- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for cadvisorInfoToCPUandMemoryStats (0.39 sec)
-
pkg/kubelet/stats/helper.go
// defaultNetworkInterfaceName is used for collectng network stats. // This logic relies on knowledge of the container runtime implementation and // is not reliable. const defaultNetworkInterfaceName = "eth0" func cadvisorInfoToCPUandMemoryStats(info *cadvisorapiv2.ContainerInfo) (*statsapi.CPUStats, *statsapi.MemoryStats) { cstat, found := latestContainerStats(info) if !found { return nil, nil } var cpuStats *statsapi.CPUStats
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 17 23:40:02 UTC 2023 - 14.8K bytes - Viewed (0) -
pkg/kubelet/stats/cadvisor_stats_provider.go
podUID := types.UID(podStats.PodRef.UID) // Lookup the pod-level cgroup's CPU and memory stats podInfo := getCadvisorPodInfoFromPodUID(podUID, allInfos) if podInfo != nil { cpu, memory := cadvisorInfoToCPUandMemoryStats(podInfo) podStats.CPU = cpu podStats.Memory = memory podStats.Swap = cadvisorInfoToSwapStats(podInfo) podStats.ProcessStats = cadvisorInfoToProcessStats(podInfo) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 16 13:34:22 UTC 2023 - 18.9K bytes - Viewed (0) -
pkg/kubelet/stats/cri_stats_provider.go
cs *statsapi.ContainerStats, ) { // try get cpu and memory stats from cadvisor first. podCgroupInfo := getCadvisorPodInfoFromPodUID(podUID, allInfos) if podCgroupInfo != nil { cpu, memory := cadvisorInfoToCPUandMemoryStats(podCgroupInfo) ps.CPU = cpu ps.Memory = memory return } // Sum Pod cpu and memory stats from containers stats. if cs.CPU != nil { if ps.CPU == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 01 18:46:33 UTC 2023 - 35.1K bytes - Viewed (0)