Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getBucketTTFBDistributionMD (0.23 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))
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Mar 04 18:05:56 GMT 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,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 132.6K bytes
    - Viewed (0)
Back to top