Skip to content

Commit

Permalink
prometheus: rework indexer buckets
Browse files Browse the repository at this point in the history
The indexer buckets weren't great for all the indexer
endpoints, this change increases the spread.

Signed-off-by: crozzy <joseph.crosland@gmail.com>
  • Loading branch information
crozzy committed May 25, 2022
1 parent e183316 commit b6ce504
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion httptransport/indexer_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,8 @@ var indexerv1wrapper = &wrapper{
Subsystem: metricSubsystem,
Name: "indexerv1_request_duration_seconds",
Help: "Distribution of request durations for the given path",
Buckets: prometheus.ExponentialBucketsRange(1, 300, 15),
// These are roughly exponential from 0.5 to 300 seconds
Buckets: []float64{0.5, 0.7, 1.1, 1.7, 2.7, 4.2, 6.5, 10, 15, 23, 36, 54, 83, 128, 196, 300},
}, []string{"handler", "code", "method"},
),
InFlight: prometheus.NewGaugeVec(
Expand Down

0 comments on commit b6ce504

Please sign in to comment.