This is an automated email from the ASF dual-hosted git repository.

ccondit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 86dd867f [YUNIKORN-2917] Add additional buckets for latency histograms 
(#982)
86dd867f is described below

commit 86dd867fb2fd0628701a520be41510684252f227
Author: Craig Condit <[email protected]>
AuthorDate: Thu Oct 10 17:24:21 2024 -0600

    [YUNIKORN-2917] Add additional buckets for latency histograms (#982)
    
    Update latency histograms to allow buckets for larger (> 10s) values.
    Also update descriptions to reflect that despite the naming, the values
    are, in fact, specified in seconds.
    
    Existing names are retained to avoid breaking backwards compatibility.
    
    Closes: #982
---
 pkg/metrics/scheduler.go | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/pkg/metrics/scheduler.go b/pkg/metrics/scheduler.go
index b0999a40..15342905 100644
--- a/pkg/metrics/scheduler.go
+++ b/pkg/metrics/scheduler.go
@@ -113,8 +113,8 @@ 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(
@@ -122,8 +122,8 @@ func InitSchedulerMetrics() *SchedulerMetrics {
                        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(
@@ -131,8 +131,8 @@ func InitSchedulerMetrics() *SchedulerMetrics {
                        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),
                },
        )
 
@@ -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),
                },
        )
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to