Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for NodeMetrics (0.23 sec)

  1. pkg/kubelet/winstats/winstats.go

    			Usage: cadvisorapiv2.CpuInstUsage{
    				Total: nodeMetrics.cpuUsageNanoCores,
    			},
    		},
    		Memory: &cadvisorapi.MemoryStats{
    			WorkingSet: nodeMetrics.memoryPrivWorkingSetBytes,
    			Usage:      nodeMetrics.memoryCommittedBytes,
    		},
    		Network: &cadvisorapiv2.NetworkStats{
    			Interfaces: nodeMetrics.interfaceStats,
    		},
    	})
    
    	nodeInfo := c.client.getNodeInfo()
    	rootInfo := cadvisorapiv2.ContainerInfo{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 5.2K bytes
    - Viewed (0)
  2. pkg/kubelet/winstats/perfcounter_nodestats.go

    		cpuUsageCoreNanoSecondsCache: initCache,
    	})
    }
    
    // perfCounterNodeStatsClient is a client that provides Windows Stats via PerfCounters
    type perfCounterNodeStatsClient struct {
    	nodeMetrics
    	mu sync.RWMutex // mu protects nodeMetrics
    	nodeInfo
    	// cpuUsageCoreNanoSecondsCache caches the cpu usage for nodes.
    	cpuUsageCoreNanoSecondsCache
    }
    
    func (p *perfCounterNodeStatsClient) startMonitoring() error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 26 18:37:21 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  3. pkg/kubelet/winstats/winstats_test.go

    var timeStamp = time.Now()
    
    type fakeWinNodeStatsClient struct{}
    
    func (f fakeWinNodeStatsClient) startMonitoring() error {
    	return nil
    }
    
    func (f fakeWinNodeStatsClient) getNodeMetrics() (nodeMetrics, error) {
    	return nodeMetrics{
    		cpuUsageCoreNanoSeconds:   123,
    		cpuUsageNanoCores:         23,
    		memoryPrivWorkingSetBytes: 1234,
    		memoryCommittedBytes:      12345,
    		timeStamp:                 timeStamp,
    	}, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 13 12:08:15 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  4. cluster/gce/gci/audit_policy_test.go

    		namespaceStatus = resource("namespaces", "", "", "status")
    		namespaceFinal  = resource("namespaces", "", "", "finalize")
    		podMetrics      = resource("podmetrics", "default", "metrics.k8s.io")
    		nodeMetrics     = resource("nodemetrics", "", "metrics.k8s.io")
    		pods            = resource("pods", "default")
    		podStatus       = resource("pods", "default", "", "status")
    		secrets         = resource("secrets", "default")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 30 06:23:50 UTC 2021
    - 9.8K bytes
    - Viewed (0)
  5. pkg/kubelet/winstats/perfcounter_nodestats_test.go

    	// Checking the error cases first.
    	p.collectMetricsData(cpuCounter, memWorkingSetCounter, memCommittedBytesCounter, networkAdapterCounter)
    	metrics, _ := p.getNodeMetrics()
    	expectedMetrics := nodeMetrics{}
    	assert.Equal(t, expectedMetrics, metrics)
    
    	cpuCounter.raiseError = false
    	p.collectMetricsData(cpuCounter, memWorkingSetCounter, memCommittedBytesCounter, networkAdapterCounter)
    	metrics, _ = p.getNodeMetrics()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 26 18:37:21 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/api/meta/testrestmapper/test_restmapper.go

    	{Group: "audit.k8s.io", Kind: "Event"}:  true,
    	{Group: "audit.k8s.io", Kind: "Policy"}: true,
    
    	{Group: "apiregistration.k8s.io", Kind: "APIService"}: true,
    
    	{Group: "metrics.k8s.io", Kind: "NodeMetrics"}: true,
    
    	{Group: "wardle.example.com", Kind: "Fischer"}: true,
    }
    
    // hardcoded is good enough for the test we're running
    var ignoredKinds = sets.NewString(
    	"ListOptions",
    	"DeleteOptions",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 06 09:07:02 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  7. pkg/generated/openapi/zz_generated.openapi.go

    										Ref:     ref("k8s.io/metrics/pkg/apis/metrics/v1alpha1.NodeMetrics"),
    									},
    								},
    							},
    						},
    					},
    				},
    				Required: []string{"items"},
    			},
    		},
    		Dependencies: []string{
    			"k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/metrics/pkg/apis/metrics/v1alpha1.NodeMetrics"},
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 18:37:07 UTC 2024
    - 3M bytes
    - Viewed (0)
Back to top