Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for populateAndPublish (0.07 sec)

  1. cmd/peer-rest-server.go

    }
    
    func (s *peerRESTServer) GetResourceMetrics(_ *grid.MSS) (*grid.Array[*MetricV2], *grid.RemoteErr) {
    	res := make([]*MetricV2, 0, len(resourceMetricsGroups))
    	populateAndPublish(resourceMetricsGroups, func(m MetricV2) bool {
    		if m.VariableLabels == nil {
    			m.VariableLabels = make(map[string]string, 1)
    		}
    		m.VariableLabels[serverName] = globalLocalNodeName
    		res = append(res, &m)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Mar 30 00:56:02 UTC 2025
    - 53.4K bytes
    - Viewed (0)
  2. cmd/metrics-v2.go

    // Describe sends the super-set of all possible descriptors of metrics
    func (c *minioNodeCollector) Describe(ch chan<- *prometheus.Desc) {
    	ch <- c.desc
    }
    
    // populateAndPublish populates and then publishes the metrics generated by the generator function.
    func populateAndPublish(metricsGroups []*MetricsGroupV2, publish func(m MetricV2) bool) {
    	for _, mg := range metricsGroups {
    		if mg == nil {
    			continue
    		}
    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