-
Notifications
You must be signed in to change notification settings - Fork 740
Closed
Closed
Copy link
Labels
affects-8.1This bug affects the 8.1.x(LTS) versions.This bug affects the 8.1.x(LTS) versions.difficulty/easyEasy task.Easy task.severity/moderatetype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Description
removing iteam from availableRUCounter
with three arguments maybe failed since it only have two lables
pd/pkg/mcs/resourcemanager/server/manager.go
Line 454 in 3d4c416
availableRUCounter.DeleteLabelValues(r.name, r.name, r.ruType) |
pd/pkg/mcs/resourcemanager/server/metrics.go
Lines 117 to 123 in 3d4c416
availableRUCounter = prometheus.NewGaugeVec( | |
prometheus.GaugeOpts{ | |
Namespace: namespace, | |
Subsystem: ruSubsystem, | |
Name: "available_ru", | |
Help: "Counter of the available RU for all resource groups.", | |
}, []string{resourceGroupNameLabel, newResourceGroupNameLabel}) |
This would cause the resource group that has already been deleted to still appear in the resource-control->resource unit->available RU
pannel. even though the data is already 0, we expect it not to appear any more.
Metadata
Metadata
Assignees
Labels
affects-8.1This bug affects the 8.1.x(LTS) versions.This bug affects the 8.1.x(LTS) versions.difficulty/easyEasy task.Easy task.severity/moderatetype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.