Skip to content

Commit 41bd2cd

Browse files
resource-group:fix issue that the deleted resource group still appear in metrics (#8722)
close #8716 resource-group: fix issue that the deleted resource group still appear in metrics Signed-off-by: AndreMouche <AndreMouche@126.com> Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
1 parent 95e00f5 commit 41bd2cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/mcs/resourcemanager/server/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ func (m *Manager) backgroundMetricsFlush(ctx context.Context) {
451451
sqlCPUCost.DeleteLabelValues(r.name, r.name, r.ruType)
452452
requestCount.DeleteLabelValues(r.name, r.name, readTypeLabel)
453453
requestCount.DeleteLabelValues(r.name, r.name, writeTypeLabel)
454-
availableRUCounter.DeleteLabelValues(r.name, r.name, r.ruType)
454+
availableRUCounter.DeleteLabelValues(r.name, r.name)
455455
delete(m.consumptionRecord, r)
456456
delete(maxPerSecTrackers, r.name)
457457
readRequestUnitMaxPerSecCost.DeleteLabelValues(r.name)

0 commit comments

Comments
 (0)