Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for clearMetrics (0.09 sec)

  1. pkg/kubelet/metrics/metrics_test.go

    )
    
    const imagePullDurationKey = "kubelet_" + ImagePullDurationKey
    
    func TestImagePullDurationMetric(t *testing.T) {
    	t.Run("register image pull duration", func(t *testing.T) {
    		Register()
    		defer clearMetrics()
    
    		// Pairs of image size in bytes and pull duration in seconds
    		dataPoints := [][]float64{
    			// 0 byets, 0 seconds
    			{0, 0},
    			// 5MB, 10 seconds
    			{5 * 1024 * 1024, 10},
    			// 15MB, 20 seconds
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 08 00:30:31 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top