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 (#8722) (#8899)

close #8716

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

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

Co-authored-by: AndreMouche <[email protected]>
Co-authored-by: Shirly <[email protected]>
Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Dec 12, 2024
1 parent d0d32d7 commit 860a6b6
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 @@ -450,7 +450,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 860a6b6

Please sign in to comment.