Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[YUNIKORN-2917] Add additional buckets for latency histograms #982

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions pkg/metrics/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,26 +113,26 @@ func InitSchedulerMetrics() *SchedulerMetrics {
Namespace: Namespace,
Subsystem: SchedulerSubsystem,
Name: "scheduling_latency_milliseconds",
Help: "Latency of the main scheduling routine, in milliseconds.",
Buckets: prometheus.ExponentialBuckets(0.0001, 10, 6), // start from 0.1ms
Help: "Latency of the main scheduling routine, in seconds.",
Buckets: prometheus.ExponentialBuckets(0.0001, 10, 8), // start from 0.1ms
},
)
s.sortingLatency = prometheus.NewHistogramVec(
prometheus.HistogramOpts{
Namespace: Namespace,
Subsystem: SchedulerSubsystem,
Name: "node_sorting_latency_milliseconds",
Help: "Latency of all nodes sorting, in milliseconds.",
Buckets: prometheus.ExponentialBuckets(0.0001, 10, 6), // start from 0.1ms
Help: "Latency of all nodes sorting, in seconds.",
Buckets: prometheus.ExponentialBuckets(0.0001, 10, 8), // start from 0.1ms
}, []string{"level"})

s.tryNodeLatency = prometheus.NewHistogram(
prometheus.HistogramOpts{
Namespace: Namespace,
Subsystem: SchedulerSubsystem,
Name: "trynode_latency_milliseconds",
Help: "Latency of node condition checks for container allocations, such as placement constraints, in milliseconds.",
Buckets: prometheus.ExponentialBuckets(0.0001, 10, 6),
Help: "Latency of node condition checks for container allocations, such as placement constraints, in seconds.",
Buckets: prometheus.ExponentialBuckets(0.0001, 10, 8),
},
)

Expand All @@ -141,8 +141,8 @@ func InitSchedulerMetrics() *SchedulerMetrics {
Namespace: Namespace,
Subsystem: SchedulerSubsystem,
Name: "trypreemption_latency_milliseconds",
Help: "Latency of preemption condition checks for container allocations, in milliseconds.",
Buckets: prometheus.ExponentialBuckets(0.0001, 10, 6),
Help: "Latency of preemption condition checks for container allocations, in seconds.",
Buckets: prometheus.ExponentialBuckets(0.0001, 10, 8),
},
)

Expand Down
Loading