Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for collectMetric (1.03 sec)

  1. cmd/metrics-resource.go

    	var wg sync.WaitGroup
    	publish := func(in <-chan MetricV2) {
    		defer wg.Done()
    		for metric := range in {
    			labels, values := getOrderedLabelValueArrays(metric.VariableLabels)
    			collectMetric(metric, labels, values, "resource", out)
    		}
    	}
    
    	// Call peer api to fetch metrics
    	wg.Add(2)
    	go publish(ReportMetrics(GlobalContext, c.metricsGroups))
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Mar 30 00:56:02 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  2. cmd/metrics-v2.go

    				Type:      counterMetric,
    			},
    			Value: float64(metric.ReqFail),
    		})
    		return metrics
    	})
    	return mg
    }
    
    func collectMetric(metric MetricV2, labels []string, values []string, metricName string, out chan<- prometheus.Metric) {
    	if metric.Description.Type == histogramMetric {
    		if metric.Histogram == nil {
    			return
    		}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 133.4K bytes
    - Viewed (0)
Back to top