feat: update preemption victims metric

Signed-off-by: lengrongfu <rongfu.leng@daocloud.io>
This commit is contained in:
lengrongfu
2022-10-09 15:29:19 +08:00
parent 575031b68f
commit 8dcd869665
2 changed files with 9 additions and 12 deletions

View File

@@ -77,8 +77,8 @@ var (
Subsystem: SchedulerSubsystem,
Name: "preemption_victims",
Help: "Number of selected preemption victims",
// we think #victims>50 is pretty rare, therefore [50, +Inf) is considered a single bucket.
Buckets: metrics.LinearBuckets(5, 5, 10),
// we think #victims>64 is pretty rare, therefore [64, +Inf) is considered a single bucket.
Buckets: metrics.ExponentialBuckets(1, 2, 7),
StabilityLevel: metrics.STABLE,
})
PreemptionAttempts = metrics.NewCounter(