From 4eab739c18fd40c386273811c93c483b56176b12 Mon Sep 17 00:00:00 2001 From: Poorna Date: Wed, 4 Jan 2023 10:23:20 -0800 Subject: [PATCH] replication: Add bandwidth usage as part of target metrics (#1744) --- pkg/replication/replication.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/replication/replication.go b/pkg/replication/replication.go index 97abf8df8..645fe18cb 100644 --- a/pkg/replication/replication.go +++ b/pkg/replication/replication.go @@ -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.