Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getBucketS3InOutBytes (0.17 sec)

  1. cmd/metrics-v3-api.go

    func loadBucketAPIHTTPMetrics(ctx context.Context, m MetricValues, _ *metricsCache, buckets []string) error {
    	if len(buckets) == 0 {
    		return nil
    	}
    	for bucket, inOut := range globalBucketConnStats.getBucketS3InOutBytes(buckets) {
    		recvBytes := inOut.In
    		if recvBytes > 0 {
    			m.Set(apiTrafficSentBytes, float64(recvBytes), "bucket", bucket, "type", "s3")
    		}
    		sentBytes := inOut.Out
    		if sentBytes > 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  2. cmd/http-stats.go

    		bucketStats[k] = inOutBytes{
    			In:  v.s3InputBytes,
    			Out: v.s3OutputBytes,
    		}
    	}
    	return bucketStats
    }
    
    // Return S3 total input/output bytes for each
    func (s *bucketConnStats) getBucketS3InOutBytes(buckets []string) map[string]inOutBytes {
    	s.RLock()
    	defer s.RUnlock()
    
    	if len(s.stats) == 0 || len(buckets) == 0 {
    		return nil
    	}
    
    	bucketStats := make(map[string]inOutBytes, len(buckets))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top