Skip to content

Commit

Permalink
resource-group:fix issue that the deleted resource group still appear…
Browse files Browse the repository at this point in the history
… in metrics (tikv#8722)

close tikv#8716

resource-group: fix issue that the deleted resource group still appear in metrics

Signed-off-by: AndreMouche <[email protected]>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
  • Loading branch information
AndreMouche and ti-chi-bot[bot] authored Oct 18, 2024
1 parent 95e00f5 commit 41bd2cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/mcs/resourcemanager/server/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ func (m *Manager) backgroundMetricsFlush(ctx context.Context) {
sqlCPUCost.DeleteLabelValues(r.name, r.name, r.ruType)
requestCount.DeleteLabelValues(r.name, r.name, readTypeLabel)
requestCount.DeleteLabelValues(r.name, r.name, writeTypeLabel)
availableRUCounter.DeleteLabelValues(r.name, r.name, r.ruType)
availableRUCounter.DeleteLabelValues(r.name, r.name)
delete(m.consumptionRecord, r)
delete(maxPerSecTrackers, r.name)
readRequestUnitMaxPerSecCost.DeleteLabelValues(r.name)
Expand Down

0 comments on commit 41bd2cd

Please sign in to comment.