Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for desiredEndpointSlices (0.2 sec)

  1. pkg/controller/endpointslicemirroring/metrics/metrics.go

    			Help:           "Number of EndpointSlices",
    			StabilityLevel: metrics.ALPHA,
    		},
    		[]string{},
    	)
    	// DesiredEndpointSlices tracks the number of EndpointSlices that would
    	// exist with perfect endpoint allocation.
    	DesiredEndpointSlices = metrics.NewGaugeVec(
    		&metrics.GaugeOpts{
    			Subsystem:      EndpointSliceMirroringSubsystem,
    			Name:           "desired_endpoint_slices",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 06 19:43:35 UTC 2020
    - 5.2K bytes
    - Viewed (0)
  2. pkg/controller/endpointslicemirroring/metrics/cache_test.go

    	mUpdate := c.desiredAndActualSlices()
    	if mUpdate.desired != desired {
    		t.Errorf("Expected numEndpointSlices to be %d, got %d", desired, mUpdate.desired)
    	}
    	if mUpdate.actual != actual {
    		t.Errorf("Expected desiredEndpointSlices to be %d, got %d", actual, mUpdate.actual)
    	}
    	if c.numEndpoints != numEndpoints {
    		t.Errorf("Expected numEndpoints to be %d, got %d", numEndpoints, c.numEndpoints)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 18:08:12 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  3. pkg/controller/endpointslicemirroring/reconciler_test.go

    func expectMetrics(t *testing.T, em expectedMetrics) {
    	t.Helper()
    
    	actualDesiredSlices, err := testutil.GetGaugeMetricValue(metrics.DesiredEndpointSlices.WithLabelValues())
    	handleErr(t, err, "desiredEndpointSlices")
    	if actualDesiredSlices != float64(em.desiredSlices) {
    		t.Errorf("Expected desiredEndpointSlices to be %d, got %v", em.desiredSlices, actualDesiredSlices)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 06:51:56 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  4. pkg/controller/endpointslicemirroring/metrics/cache.go

    // Must be called holding lock.
    func (c *Cache) updateMetrics() {
    	mUpdate := c.desiredAndActualSlices()
    	NumEndpointSlices.WithLabelValues().Set(float64(mUpdate.actual))
    	DesiredEndpointSlices.WithLabelValues().Set(float64(mUpdate.desired))
    	EndpointsDesired.WithLabelValues().Set(float64(c.numEndpoints))
    }
    
    // numDesiredSlices calculates the number of EndpointSlices that would exist
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 18:08:12 UTC 2023
    - 5.2K bytes
    - Viewed (0)
Back to top