Skip to content

Commit

Permalink
kvserver: fix rebalancing.(write|read)bytes desc
Browse files Browse the repository at this point in the history
The `rebalancing.readbytespersecond` and
`rebalancing.writebytespersecond` metrics had incorrect descriptions
which stated "written" for reads and "read" for writes.

This commit updates the metric descriptions to be correct.

Epic: none

Release note (bug fix): Fix the metric description of
`rebalancing.readbytespersecond`, `rebalancing.writebytespersecond`
to correctly reference bytes read and bytes written respectively.
  • Loading branch information
kvoli committed Apr 13, 2023
1 parent 1260768 commit a451f86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/kv/kvserver/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,13 +344,13 @@ var (
}
metaAverageWriteBytesPerSecond = metric.Metadata{
Name: "rebalancing.writebytespersecond",
Help: "Number of bytes read recently per second, considering the last 30 minutes.",
Help: "Number of bytes written recently per second, considering the last 30 minutes.",
Measurement: "Bytes/Sec",
Unit: metric.Unit_BYTES,
}
metaAverageReadBytesPerSecond = metric.Metadata{
Name: "rebalancing.readbytespersecond",
Help: "Number of bytes written per second, considering the last 30 minutes.",
Help: "Number of bytes read recently per second, considering the last 30 minutes.",
Measurement: "Bytes/Sec",
Unit: metric.Unit_BYTES,
}
Expand Down

0 comments on commit a451f86

Please sign in to comment.