Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetPeerBucketMetrics (0.13 sec)

  1. cmd/peer-rest-server.go

    		m.VariableLabels[serverName] = globalLocalNodeName
    		res = append(res, &m)
    		return true
    	})
    	return aoMetricsGroup.NewWith(res), nil
    }
    
    // GetPeerBucketMetrics gets the metrics to be federated across peers.
    func (s *peerRESTServer) GetPeerBucketMetrics(_ *grid.MSS) (*grid.Array[*MetricV2], *grid.RemoteErr) {
    	res := make([]*MetricV2, 0, len(bucketPeerMetricsGroups))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  2. cmd/peer-rest-client.go

    			if m == nil {
    				continue
    			}
    			select {
    			case <-ctx.Done():
    				return
    			case ch <- *m:
    			}
    		}
    	}()
    	return ch, nil
    }
    
    func (client *peerRESTClient) GetPeerBucketMetrics(ctx context.Context) (<-chan MetricV2, error) {
    	resp, err := getPeerBucketMetricsRPC.Call(ctx, client.gridConn(), grid.NewMSS())
    	if err != nil {
    		return nil, err
    	}
    	ch := make(chan MetricV2)
    	go func() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  3. cmd/notification.go

    		index := index
    		g.Go(func() error {
    			if sys.peerClients[index] == nil {
    				return errPeerNotReachable
    			}
    			var err error
    			peerChannels[index], err = sys.peerClients[index].GetPeerBucketMetrics(ctx)
    			return err
    		}, index)
    	}
    	return sys.collectPeerMetrics(ctx, peerChannels, g)
    }
    
    // GetClusterMetrics - gets the cluster metrics from all nodes excluding self.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 46.2K bytes
    - Viewed (0)
Back to top