removing iteam from availableRUCounter with three arguments maybe failed since it only have two lables
|
availableRUCounter.DeleteLabelValues(r.name, r.name, r.ruType) |
|
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.
removing iteam from
availableRUCounterwith three arguments maybe failed since it only have two lablespd/pkg/mcs/resourcemanager/server/manager.go
Line 454 in 3d4c416
pd/pkg/mcs/resourcemanager/server/metrics.go
Lines 117 to 123 in 3d4c416
This would cause the resource group that has already been deleted to still appear in the
resource-control->resource unit->available RUpannel. even though the data is already 0, we expect it not to appear any more.