Skip to content

Commit

Permalink
resourcemanager: change the ru label name (tikv#7135)
Browse files Browse the repository at this point in the history
close tikv#4399

resourcemanager: change the ru label name

Signed-off-by: nolouch <[email protected]>
  • Loading branch information
nolouch authored Sep 22, 2023
1 parent e6c8841 commit 301b917
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/mcs/resourcemanager/server/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ func (m *Manager) backgroundMetricsFlush(ctx context.Context) {
if consumption == nil {
continue
}
ruLabelType := tidbTypeLabel
ruLabelType := defaultTypeLabel
if consumptionInfo.isBackground {
ruLabelType = backgroundTypeLabel
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/mcs/resourcemanager/server/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const (
readTypeLabel = "read"
writeTypeLabel = "write"
backgroundTypeLabel = "background"
tiflashTypeLabel = "tiflash"
tidbTypeLabel = "tidb"
tiflashTypeLabel = "ap"
defaultTypeLabel = "tp"
)

var (
Expand Down

0 comments on commit 301b917

Please sign in to comment.