Skip to content

Commit

Permalink
replication: Add bandwidth usage as part of target metrics (#1744)
Browse files Browse the repository at this point in the history
  • Loading branch information
poornas committed Jan 4, 2023
1 parent 8cfb4c2 commit 4eab739
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/replication/replication.go
Expand Up @@ -700,6 +700,10 @@ type TargetMetrics struct {
PendingCount uint64 `json:"pendingReplicationCount"`
// Total number of failed operations including metadata updates
FailedCount uint64 `json:"failedReplicationCount"`
// Bandwidth limit in bytes/sec for this target
BandWidthLimitInBytesPerSecond int64 `json:"limitInBits"`
// Current bandwidth used in bytes/sec for this target
CurrentBandwidthInBytesPerSecond float64 `json:"currentBandwidth"`
}

// Metrics represents inline replication metrics for a bucket.
Expand Down

0 comments on commit 4eab739

Please sign in to comment.