Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ConnStats (0.04 sec)

  1. cmd/http-stats.go

    	"github.com/prometheus/client_golang/prometheus"
    )
    
    // connStats - Network statistics
    // Count total input/output transferred bytes during
    // the server's life.
    type connStats struct {
    	internodeInputBytes  uint64
    	internodeOutputBytes uint64
    	s3InputBytes         uint64
    	s3OutputBytes        uint64
    }
    
    // Increase internode total input bytes
    func (s *connStats) incInternodeInputBytes(n int64) {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  2. cmd/metrics-v3-api.go

    //
    // This is a `MetricsLoaderFn`.
    func loadAPIRequestsNetworkMetrics(ctx context.Context, m MetricValues, _ *metricsCache) error {
    	connStats := globalConnStats.toServerConnStats()
    	m.Set(apiTrafficSentBytes, float64(connStats.s3OutputBytes), "type", "s3")
    	m.Set(apiTrafficRecvBytes, float64(connStats.s3InputBytes), "type", "s3")
    	return nil
    }
    
    // Metric Descriptions for bucket level S3 metrics.
    var (
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  3. cmd/metrics-v2.go

    				Value:       float64(connStats.internodeOutputBytes),
    			})
    			metrics = append(metrics, MetricV2{
    				Description: getInterNodeReceivedBytesMD(),
    				Value:       float64(connStats.internodeInputBytes),
    			})
    		}
    		metrics = append(metrics, MetricV2{
    			Description: getS3SentBytesMD(),
    			Value:       float64(connStats.s3OutputBytes),
    		})
    		metrics = append(metrics, MetricV2{
    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