Skip to content

Commit 572e0e5

Browse files
committed
Use custom histogram buckets.
Setting 4 buckets with exponential in range 1, 100 meant the boundaries were at 1, 4.64, 21.53, 100. Because of that, the p99 looked misleadingly large.
1 parent 299737a commit 572e0e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webhook/stats.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func initWebhookStats(constLabels prometheus.Labels) {
4545
Subsystem: "webhook",
4646
Name: "queue_length",
4747
ConstLabels: constLabels,
48-
Buckets: prometheus.ExponentialBucketsRange(1, 100, 4),
48+
Buckets: []float64{1, 2, 3, 4, 5, 10, 20, 40, 80},
4949
})
5050
}
5151

0 commit comments

Comments
 (0)