Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getBucketTTFBDistributionMD (0.11 sec)

  1. cmd/metrics-v2_test.go

    		// synchronization used internally.
    		select {
    		case <-ticker.C:
    			ttfbHist.With(prometheus.Labels{"api": obs.label}).Observe(obs.val)
    		}
    	}
    
    	metrics := getHistogramMetrics(ttfbHist, getBucketTTFBDistributionMD(), false)
    	// additional labels for +Inf for all histogram metrics
    	if expPoints := len(labels) * (len(histBuckets) + 1); expPoints != len(metrics) {
    		t.Fatalf("Expected %v data points but got %v", expPoints, len(metrics))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Mar 04 18:05:56 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. cmd/metrics-v2.go

    		Subsystem: ttfbSubsystem,
    		Name:      ttfbDistribution,
    		Help:      "Distribution of time to first byte across API calls",
    		Type:      gaugeMetric,
    	}
    }
    
    func getBucketTTFBDistributionMD() MetricDescription {
    	return MetricDescription{
    		Namespace: bucketMetricNamespace,
    		Subsystem: ttfbSubsystem,
    		Name:      ttfbDistribution,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 131.9K bytes
    - Viewed (0)
Back to top