Skip to content

Commit 317e508

Browse files
committed
fix: metrics of priority queue
1 parent 296e196 commit 317e508

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

metrics/priority_queue.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,16 @@ var (
5757
Subsystem: PriorityQueueSubsystem,
5858
Name: QueueLatencyKey,
5959
Help: "How long in seconds an item stays in priority queue before being requested",
60-
Buckets: prometheus.ExponentialBuckets(10e-9, 10, 10),
60+
Buckets: []float64{0.005, 0.01, 0.025, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0,
61+
1.25, 1.5, 1.75, 2.0, 2.5, 3.0, 3.5, 4.0, 4.5, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30, 40, 50, 60},
6162
}, []string{"name", "priority"})
6263

6364
workDuration = prometheus.NewHistogramVec(prometheus.HistogramOpts{
6465
Subsystem: PriorityQueueSubsystem,
6566
Name: WorkDurationKey,
6667
Help: "How long in seconds processing an item from priority queue takes.",
67-
Buckets: prometheus.ExponentialBuckets(10e-9, 10, 10),
68+
Buckets: []float64{0.005, 0.01, 0.025, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0,
69+
1.25, 1.5, 1.75, 2.0, 2.5, 3.0, 3.5, 4.0, 4.5, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30, 40, 50, 60},
6870
}, []string{"name", "priority"})
6971

7072
unfinished = prometheus.NewGaugeVec(prometheus.GaugeOpts{

0 commit comments

Comments
 (0)