@@ -18,6 +18,7 @@ package metrics
1818
1919import (
2020 "strconv"
21+ "time"
2122
2223 "github.com/prometheus/client_golang/prometheus"
2324 "k8s.io/client-go/util/workqueue"
@@ -54,17 +55,23 @@ var (
5455 }, []string {"name" , "controller" })
5556
5657 latency = prometheus .NewHistogramVec (prometheus.HistogramOpts {
57- Subsystem : WorkQueueSubsystem ,
58- Name : QueueLatencyKey ,
59- Help : "How long in seconds an item stays in workqueue before being requested" ,
60- Buckets : prometheus .ExponentialBuckets (10e-9 , 10 , 12 ),
58+ Subsystem : WorkQueueSubsystem ,
59+ Name : QueueLatencyKey ,
60+ Help : "How long in seconds an item stays in workqueue before being requested" ,
61+ Buckets : prometheus .ExponentialBuckets (10e-9 , 10 , 12 ),
62+ NativeHistogramBucketFactor : 1.1 ,
63+ NativeHistogramMaxBucketNumber : 100 ,
64+ NativeHistogramMinResetDuration : 1 * time .Hour ,
6165 }, []string {"name" , "controller" })
6266
6367 workDuration = prometheus .NewHistogramVec (prometheus.HistogramOpts {
64- Subsystem : WorkQueueSubsystem ,
65- Name : WorkDurationKey ,
66- Help : "How long in seconds processing an item from workqueue takes." ,
67- Buckets : prometheus .ExponentialBuckets (10e-9 , 10 , 12 ),
68+ Subsystem : WorkQueueSubsystem ,
69+ Name : WorkDurationKey ,
70+ Help : "How long in seconds processing an item from workqueue takes." ,
71+ Buckets : prometheus .ExponentialBuckets (10e-9 , 10 , 12 ),
72+ NativeHistogramBucketFactor : 1.1 ,
73+ NativeHistogramMaxBucketNumber : 100 ,
74+ NativeHistogramMinResetDuration : 1 * time .Hour ,
6875 }, []string {"name" , "controller" })
6976
7077 unfinished = prometheus .NewGaugeVec (prometheus.GaugeOpts {
0 commit comments