- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for interfaceStats (0.25 sec)
-
pkg/kubelet/stats/cri_stats_provider_windows_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Feb 17 00:02:10 UTC 2024 - 13.8K bytes - Viewed (0) -
pkg/kubelet/stats/cri_stats_provider_windows.go
Time: metav1.NewTime(timestamp), Interfaces: make([]statsapi.InterfaceStats, 0), } iStat := hcsStatToInterfaceStat(hcsStats, endpointName) // TODO: add support of multiple interfaces for getting default interface. result.Interfaces = append(result.Interfaces, iStat) result.InterfaceStats = iStat return result }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Feb 18 07:03:11 UTC 2024 - 10.4K bytes - Viewed (0) -
pkg/kubelet/winstats/network_stats.go
packetsOutboundErrorsCounter: packetsOutboundErrorsCounter, adapterStats: map[string]cadvisorapi.InterfaceStats{}, }, nil } func (n *networkCounter) getData() ([]cadvisorapi.InterfaceStats, error) { packetsReceivedPerSecondData, err := n.packetsReceivedPerSecondCounter.getDataList() if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 10.2K bytes - Viewed (0) -
pkg/kubelet/winstats/network_stats_test.go
// have to be cleaned up after processing the data. netCounter.adapterStats["other-fake-adapter"] = cadvisorapi.InterfaceStats{} data, err := netCounter.getData() assert.NoError(t, err) // Make sure that we only have data from a single net adapter. expectedStats := cadvisorapi.InterfaceStats{ Name: fakeAdapterName, RxPackets: 1, TxPackets: 1, RxBytes: 1, TxBytes: 1, RxDropped: 1,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 13 12:08:15 UTC 2023 - 5.2K bytes - Viewed (0) -
pkg/kubelet/stats/cri_stats_provider_linux.go
return } criNetwork := criPodStat.Linux.Network iStats := statsapi.NetworkStats{ Time: metav1.NewTime(time.Unix(0, criNetwork.Timestamp)), InterfaceStats: criInterfaceToSummary(criNetwork.DefaultInterface), Interfaces: make([]statsapi.InterfaceStats, 0, len(criNetwork.Interfaces)), } for _, iface := range criNetwork.Interfaces { iStats.Interfaces = append(iStats.Interfaces, criInterfaceToSummary(iface)) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 16 11:09:04 UTC 2023 - 4K bytes - Viewed (0) -
pkg/kubelet/winstats/winstats.go
type nodeMetrics struct { cpuUsageCoreNanoSeconds uint64 cpuUsageNanoCores uint64 memoryPrivWorkingSetBytes uint64 memoryCommittedBytes uint64 timeStamp time.Time interfaceStats []cadvisorapi.InterfaceStats } type nodeInfo struct { memoryPhysicalCapacityBytes uint64 kernelVersion string osImageVersion string // startTime is the time when the node was started
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 5.2K bytes - Viewed (0) -
src/net/interface_test.go
} } func TestInterfaceAddrs(t *testing.T) { ift, err := Interfaces() if err != nil { t.Fatal(err) } ifStats := interfaceStats(ift) ifat, err := InterfaceAddrs() if err != nil { t.Fatal(err) } uniStats, err := validateInterfaceUnicastAddrs(ifat) if err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 9.8K bytes - Viewed (0) -
pkg/kubelet/winstats/perfcounter_nodestats_test.go
expectedMetrics = nodeMetrics{ cpuUsageCoreNanoSeconds: uint64(ProcessorCount()) * 1e7, cpuUsageNanoCores: 0, memoryPrivWorkingSetBytes: 2, memoryCommittedBytes: 3, interfaceStats: networkAdapterCounter.listInterfaceStats(), timeStamp: time.Now(), } assert.Equal(t, expectedMetrics, metrics) } func TestConvertCPUValue(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 26 18:37:21 UTC 2024 - 5.7K bytes - Viewed (0) -
pkg/kubelet/stats/helper.go
inter := cstat.Network.Interfaces[i] iStat := statsapi.InterfaceStats{ Name: inter.Name, RxBytes: &inter.RxBytes, RxErrors: &inter.RxErrors, TxBytes: &inter.TxBytes, TxErrors: &inter.TxErrors, } if inter.Name == defaultNetworkInterfaceName { iStats.InterfaceStats = iStat } iStats.Interfaces = append(iStats.Interfaces, iStat) }
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/provider_test.go
cinfo.Stats[0].Memory.RSS = 0 cinfo.Stats[0].CpuInst.Usage.Total = 0 cinfo.Stats[0].Network = &cadvisorapiv2.NetworkStats{ Interfaces: []cadvisorapiv1.InterfaceStats{{ Name: "eth0", RxBytes: 0, RxErrors: 0, TxBytes: 0, TxErrors: 0, }, { Name: "cbr0", RxBytes: 0, RxErrors: 0, TxBytes: 0, TxErrors: 0,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 08:12:16 UTC 2024 - 20K bytes - Viewed (0)