From 301b917365bb071652b297cf5cbc8e2c0e0e6ddd Mon Sep 17 00:00:00 2001 From: ShuNing Date: Fri, 22 Sep 2023 12:16:44 +0800 Subject: [PATCH] resourcemanager: change the ru label name (#7135) close tikv/pd#4399 resourcemanager: change the ru label name Signed-off-by: nolouch --- pkg/mcs/resourcemanager/server/manager.go | 2 +- pkg/mcs/resourcemanager/server/metrics.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/mcs/resourcemanager/server/manager.go b/pkg/mcs/resourcemanager/server/manager.go index df237bd0feb..1731faf8af1 100644 --- a/pkg/mcs/resourcemanager/server/manager.go +++ b/pkg/mcs/resourcemanager/server/manager.go @@ -363,7 +363,7 @@ func (m *Manager) backgroundMetricsFlush(ctx context.Context) { if consumption == nil { continue } - ruLabelType := tidbTypeLabel + ruLabelType := defaultTypeLabel if consumptionInfo.isBackground { ruLabelType = backgroundTypeLabel } diff --git a/pkg/mcs/resourcemanager/server/metrics.go b/pkg/mcs/resourcemanager/server/metrics.go index 184eddc8ef9..25d0516d269 100644 --- a/pkg/mcs/resourcemanager/server/metrics.go +++ b/pkg/mcs/resourcemanager/server/metrics.go @@ -26,8 +26,8 @@ const ( readTypeLabel = "read" writeTypeLabel = "write" backgroundTypeLabel = "background" - tiflashTypeLabel = "tiflash" - tidbTypeLabel = "tidb" + tiflashTypeLabel = "ap" + defaultTypeLabel = "tp" ) var (