Skip to content

Commit

Permalink
Merge pull request #2253 from sawsa307/cherry-pick-1981-to-1.20
Browse files Browse the repository at this point in the history
[Cherry-pick #1981 -> 1.20]  Add smaller bucket sizes for workqueue metrics
  • Loading branch information
k8s-ci-robot authored Sep 6, 2023
2 parents 611a6e4 + d004172 commit 015ccd4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/metrics/workqueue.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@ var (
Subsystem: workQueueSubsystem,
Name: queueLatencyKey,
Help: "Time item remains in the workqueue before processing (seconds).",
// custom buckets - [1.75s,3.06s, 5.35s, 9.37s, 16.41s, 28.72s, 50.26s, 87.96s(1,5min), 153.93s(2,5min), 269.38s(4,5min), 471.43s(~8min), 825s(~14), 1443.75s(~24min), 2526.57s(~42min), 4421.51s(~73min), 7737.64s(~129min), 13540.87s(225min), +Inf]
Buckets: prometheus.ExponentialBuckets(1, 1.75, 18),
// custom buckets - [0.005s, 0.01s, 0.1s, 0.25s, 0.5s, 1s, 1.75s, 3.06s, 5.35s, 9.37s, 16.41s, 28.72s, 50.26s, 87.96s(1.5min), 153.93s(2.5min), 269.38s(4.5min), 471.43s(~8min), 825s(~14), 1443.75s(~24min), 2526.57s(~42min), 4421.51s(~73min), 7737.64s(~129min), 13540.87s(225min), +Inf]
Buckets: append([]float64{0.005, 0.01, 0.1, 0.25, 0.5}, prometheus.ExponentialBuckets(1, 1.75, 18)...),
}, []string{nameLabel})

workDuration = prometheus.NewHistogramVec(prometheus.HistogramOpts{
Subsystem: workQueueSubsystem,
Name: workDurationKey,
Help: "Time item takes to reconcile after dequeuing from the workqueue (seconds).",
// custom buckets - [1.75s,3.06s, 5.35s, 9.37s, 16.41s, 28.72s, 50.26s, 87.96s(1,5min), 153.93s(2,5min), 269.38s(4,5min), 471.43s(~8min), 825s(~14), 1443.75s(~24min), 2526.57s(~42min), 4421.51s(~73min), 7737.64s(~129min), 13540.87s(225min), +Inf]
Buckets: prometheus.ExponentialBuckets(1, 1.75, 18),
// custom buckets - [0.005s, 0.01s, 0.1s, 0.25s, 0.5s, 1s, 1.75s, 3.06s, 5.35s, 9.37s, 16.41s, 28.72s, 50.26s, 87.96s(1.5min), 153.93s(2.5min), 269.38s(4.5min), 471.43s(~8min), 825s(~14), 1443.75s(~24min), 2526.57s(~42min), 4421.51s(~73min), 7737.64s(~129min), 13540.87s(225min), +Inf]
Buckets: append([]float64{0.005, 0.01, 0.1, 0.25, 0.5}, prometheus.ExponentialBuckets(1, 1.75, 18)...),
}, []string{nameLabel})

unfinished = prometheus.NewGaugeVec(prometheus.GaugeOpts{
Expand Down

0 comments on commit 015ccd4

Please sign in to comment.