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(

View File

@ -88,16 +88,13 @@
type: Histogram
stabilityLevel: STABLE
buckets:
- 5
- 10
- 15
- 20
- 25
- 30
- 35
- 40
- 45
- 50
- 1
- 2
- 4
- 8
- 16
- 32
- 64
- name: queue_incoming_pods_total
subsystem: scheduler
help: Number of pods added to scheduling queues by event and queue type.