Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for mgMap (0.16 sec)

  1. cmd/metrics-v3.go

    	for path, collector := range collectors {
    		gatherers[path] = mustRegister(collector)
    		collectorPaths = append(collectorPaths, path)
    	}
    	slices.Sort(collectorPaths)
    	return &metricsV3Collection{
    		mgMap:          mgMap,
    		bucketMGMap:    bucketMGMap,
    		mgGatherers:    gatherers,
    		collectorPaths: collectorPaths,
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 16:07:23 GMT 2024
    - 10K bytes
    - Viewed (0)
  2. cmd/metrics-v3-handler.go

    	// First collect all matching MetricsGroup's
    	matchingMG := make(map[collectorPath]*MetricsGroup)
    	for _, collPath := range h.metricsData.collectorPaths {
    		if collPath.isDescendantOf(path) {
    			if v, ok := h.metricsData.mgMap[collPath]; ok {
    				matchingMG[collPath] = v
    			} else {
    				matchingMG[collPath] = h.metricsData.bucketMGMap[collPath]
    			}
    		}
    	}
    
    	if len(matchingMG) == 0 {
    		return nil
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 7.4K bytes
    - Viewed (0)
Back to top