Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getHistogramMetrics (0.24 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) {
    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/tier.go

    		Name:      tierRequestsFailure,
    		Help:      "Number of requests to download object from warm tier that failed",
    		Type:      counterMetric,
    	}
    )
    
    func (t *tierMetrics) Report() []MetricV2 {
    	metrics := getHistogramMetrics(t.histogram, tierTTLBMD, true)
    	t.RLock()
    	defer t.RUnlock()
    	for tier, stat := range t.requestsCount {
    		metrics = append(metrics, MetricV2{
    			Description:    tierRequestsSuccessMD,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  3. cmd/metrics-v3-types.go

    ) {
    	if _, ok := m.descriptors[name]; !ok {
    		panic(fmt.Sprintf("metric has no description: %s", name))
    	}
    	dummyDesc := MetricDescription{}
    	metricsV2 := getHistogramMetrics(hist, dummyDesc, false)
    	for _, metric := range metricsV2 {
    		// If a bucket filter is provided, only add metrics for the given
    		// buckets.
    		if len(bucketFilter) > 0 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Mar 10 09:15:15 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  4. cmd/metrics-v2.go

    		})
    		return
    	})
    	return mg
    }
    
    // getHistogramMetrics fetches histogram metrics and returns it in a []Metric
    // Note: Typically used in MetricGroup.RegisterRead
    //
    // The last parameter is added for compatibility - if true it lowercases the
    // `api` label values.
    func getHistogramMetrics(hist *prometheus.HistogramVec, desc MetricDescription, toLowerAPILabels bool) []MetricV2 {
    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