forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kvserver: implement granular metrics for snapshot bytes sent/rcvd
This commit adds the following new metrics - `range.snapshots.unknown.rcvd-bytes` - `range.snapshots.unknown.sent-bytes` - `range.snapshots.rebalancing.rcvd-bytes` - `range.snapshots.rebalancing.sent-bytes` - `range.snapshots.recovery.rcvd-bytes` - `range.snapshots.recovery.sent-bytes` These metrics tracks the bytes send/received for each type of snapshot (rebalance, recovery, and unknown snapshots). The sum of these three new metrics should equal the existing `range.snapshots.(sent|rcvd)-bytes` that tracks the total number of snapshot bytes sent and received. Additionally, this commit changes the `snapshotStrategy` interface such that the `Receive` and `Send` methods take `snapshotBytesMetricFn` as a parameter rather than `*metric.Counter` Resolves cockroachdb#81047 Release Note: None
- Loading branch information
1 parent
fa277e9
commit 3c381fc
Showing
9 changed files
with
449 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.