Skip to content

Commit

Permalink
metrics: make hot split region more readable
Browse files Browse the repository at this point in the history
Signed-off-by: lhy1024 <[email protected]>
  • Loading branch information
lhy1024 committed Jul 14, 2022
1 parent 8a96807 commit c98171f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/schedulers/hot_region.go
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ func (bs *balanceSolver) solve() []*operator.Operator {
if bs.cur.region = bs.getRegion(srcPeerStat, srcStoreID); bs.cur.region == nil {
continue
} else if bs.opTy == movePeer && bs.cur.region.GetApproximateSize() > bs.GetOpts().GetMaxMovableHotPeerSize() {
schedulerCounter.WithLabelValues(fmt.Sprintf("hot-region-%s", bs.rwTy), "hot_region_split").Inc()
schedulerCounter.WithLabelValues(bs.sche.GetName(), "need_split_before_move_peer").Inc()
continue
}
bs.cur.srcPeerStat = srcPeerStat
Expand Down

0 comments on commit c98171f

Please sign in to comment.