Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for GetCounterMetricValue (0.31 sec)

  1. pkg/registry/core/service/portallocator/controller/repair_test.go

    func expectMetrics(t *testing.T, em testMetrics) {
    	var m testMetrics
    	var err error
    
    	m.leak, err = testutil.GetCounterMetricValue(nodePortRepairPortErrors.WithLabelValues("leak"))
    	if err != nil {
    		t.Errorf("failed to get %s value, err: %v", nodePortRepairPortErrors.Name, err)
    	}
    	m.repair, err = testutil.GetCounterMetricValue(nodePortRepairPortErrors.WithLabelValues("repair"))
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 30 15:46:06 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  2. pkg/registry/core/service/portallocator/allocator_test.go

    		t.Errorf("failed to get %s value, err: %v", nodePortAllocated.Name, err)
    	}
    	staticAllocated, err := testutil.GetCounterMetricValue(nodePortAllocations.WithLabelValues("static"))
    	if err != nil {
    		t.Errorf("failed to get %s value, err: %v", nodePortAllocations.Name, err)
    	}
    	staticErrors, err := testutil.GetCounterMetricValue(nodePortAllocationErrors.WithLabelValues("static"))
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 07:15:02 UTC 2024
    - 14K bytes
    - Viewed (0)
  3. pkg/registry/core/service/ipallocator/controller/repair_test.go

    	if err != nil {
    		t.Errorf("failed to get %s value, err: %v", clusterIPRepairIPErrors.Name, err)
    	}
    	m.full, err = testutil.GetCounterMetricValue(clusterIPRepairIPErrors.WithLabelValues("full"))
    	if err != nil {
    		t.Errorf("failed to get %s value, err: %v", clusterIPRepairIPErrors.Name, err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 30 15:46:06 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  4. pkg/registry/core/service/ipallocator/bitmap_test.go

    		t.Errorf("failed to get %s value, err: %v", clusterIPAllocated.Name, err)
    	}
    	static_allocated, err := testutil.GetCounterMetricValue(clusterIPAllocations.WithLabelValues(label, "static"))
    	if err != nil {
    		t.Errorf("failed to get %s value, err: %v", clusterIPAllocations.Name, err)
    	}
    	static_errors, err := testutil.GetCounterMetricValue(clusterIPAllocationErrors.WithLabelValues(label, "static"))
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 25 20:32:40 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  5. pkg/controller/volume/ephemeral/controller_test.go

    	t.Helper()
    
    	actualCreated, err := testutil.GetCounterMetricValue(ephemeralvolumemetrics.EphemeralVolumeCreateAttempts)
    	handleErr(t, err, "ephemeralVolumeCreate")
    	if actualCreated != float64(em.numCreated) {
    		t.Errorf("Expected PVCs to be created %d, got %v", em.numCreated, actualCreated)
    	}
    	actualConflicts, err := testutil.GetCounterMetricValue(ephemeralvolumemetrics.EphemeralVolumeCreateFailures)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 06:51:56 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  6. pkg/controller/resourceclaim/controller_test.go

    	t.Helper()
    
    	actualCreated, err := testutil.GetCounterMetricValue(ephemeralvolumemetrics.ResourceClaimCreateAttempts)
    	handleErr(t, err, "ResourceClaimCreate")
    	if actualCreated != float64(em.numCreated) {
    		t.Errorf("Expected claims to be created %d, got %v", em.numCreated, actualCreated)
    	}
    	actualConflicts, err := testutil.GetCounterMetricValue(ephemeralvolumemetrics.ResourceClaimCreateFailures)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 08:56:16 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  7. pkg/controller/job/tracking_utils_test.go

    			}
    		})
    	}
    }
    
    func validateTerminatedPodsTrackingFinalizerTotal(event string, want int) error {
    	got, err := testutil.GetCounterMetricValue(metrics.TerminatedPodsTrackingFinalizerTotal.WithLabelValues(event))
    	if err != nil {
    		return err
    	}
    	if int(got) != want {
    		return fmt.Errorf("got value %d, want %d", int(got), want)
    	}
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 14 05:40:02 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  8. pkg/registry/core/service/ipallocator/ipallocator_test.go

    		if err != nil {
    			t.Fatal(err)
    		}
    		if found.Has(ip.String()) {
    			t.Fatalf("already reserved: %s", ip)
    		}
    		found.Insert(ip.String())
    	}
    
    	dynamic_allocated, err := testutil.GetCounterMetricValue(clusterIPAllocations.WithLabelValues(cidrIPv4, "dynamic"))
    	if err != nil {
    		t.Errorf("failed to get %s value, err: %v", clusterIPAllocations.Name, err)
    	}
    	if dynamic_allocated != 2 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jun 25 13:14:46 UTC 2023
    - 24.2K bytes
    - Viewed (0)
  9. pkg/controller/endpointslicemirroring/reconciler_test.go

    	}
    
    	actualCreated, err := testutil.GetCounterMetricValue(metrics.EndpointSliceChanges.WithLabelValues("create"))
    	handleErr(t, err, "endpointSliceChangesCreated")
    	if actualCreated != float64(em.numCreated) {
    		t.Errorf("Expected endpointSliceChangesCreated to be %d, got %v", em.numCreated, actualCreated)
    	}
    
    	actualUpdated, err := testutil.GetCounterMetricValue(metrics.EndpointSliceChanges.WithLabelValues("update"))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 06:51:56 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  10. pkg/controller/nodeipam/ipam/cidrset/cidr_set_test.go

    		t.Errorf("failed to get %s value, err: %v", cidrSetUsage.Name, err)
    	}
    	m.allocs, err = testutil.GetCounterMetricValue(cidrSetAllocations.WithLabelValues(label))
    	if err != nil {
    		t.Errorf("failed to get %s value, err: %v", cidrSetAllocations.Name, err)
    	}
    	m.releases, err = testutil.GetCounterMetricValue(cidrSetReleases.WithLabelValues(label))
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 11 08:53:03 UTC 2023
    - 29.5K bytes
    - Viewed (0)
Back to top