Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getHistogramMetrics (0.21 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) {
    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/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,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 20:44:05 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  3. cmd/metrics-v3-types.go

    	extraLabels ...string,
    ) {
    	if _, ok := m.descriptors[name]; !ok {
    		panic(fmt.Sprintf("metric has no description: %s", name))
    	}
    	dummyDesc := MetricDescription{}
    	metricsV2 := getHistogramMetrics(hist, dummyDesc, false)
    mainLoop:
    	for _, metric := range metricsV2 {
    		for label, allowedValues := range filterByLabels {
    			if !allowedValues.Contains(metric.VariableLabels[label]) {
    				continue mainLoop
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 30 22:28:46 UTC 2024
    - 15.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 {
    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