Skip to content

Commit 89faa2d

Browse files
change request duration bucket
1 parent 7ea882f commit 89faa2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

metric/prometheus.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ var (
6161
Namespace: promNamespace,
6262
Name: "request_duration_seconds",
6363
Help: "Total request duration time in seconds, including signing and upstream processing",
64-
// 20 buckets range from 50ms to 1s, since upstream duration is unknown
65-
Buckets: prometheus.LinearBuckets(0.05, 0.05, 20),
64+
// 20 buckets range from 50ms to 30s, since upstream duration is unknown
65+
Buckets: prometheus.ExponentialBucketsRange(0.05, 30, 20),
6666
},
6767
commonLabels,
6868
)

0 commit comments

Comments
 (0)