Skip to content

Commit d7ea524

Browse files
Refine endpoint histogram to be more finely bucketed
1 parent 51d7e34 commit d7ea524

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/metrics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl Metrics {
4141
prometheus::HistogramOpts::new(ENDPOINT_TIME, "duration of endpoint requests")
4242
// Exponential buckets, with 5ms as start and top bucket ending at
4343
// approximately 5 seconds.
44-
.buckets(prometheus::exponential_buckets(0.005, 1.5, 17).unwrap()),
44+
.buckets(prometheus::exponential_buckets(0.05, 1.2, 25).unwrap()),
4545
&["endpoint"]
4646
)?;
4747

0 commit comments

Comments
 (0)