Skip to content

Commit

Permalink
Align S3 Gateway Prometheus Histogram Buckets with lakeFS API Buckets (
Browse files Browse the repository at this point in the history
  • Loading branch information
guy-har authored Apr 3, 2024
1 parent a81657f commit 4adfb3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/api/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ var requestHistograms = promauto.NewHistogramVec(
prometheus.HistogramOpts{
Name: "api_request_duration_seconds",
Help: "request durations for lakeFS API",
Buckets: []float64{0.01, 0.05, 0.1, 0.2, 0.25, 0.5, 1, 2.5, 5, 10, 30, 60},
Buckets: []float64{0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 1, 2, 5, 10, 30, 60},
},
[]string{"operation", "code"})
5 changes: 3 additions & 2 deletions pkg/gateway/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import (

var requestHistograms = promauto.NewHistogramVec(
prometheus.HistogramOpts{
Name: "gateway_request_duration_seconds",
Help: "request durations for lakeFS storage gateway",
Name: "gateway_request_duration_seconds",
Help: "request durations for lakeFS storage gateway",
Buckets: []float64{0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 1, 2, 5, 10, 30, 60},
},
[]string{"operation", "code"})

0 comments on commit 4adfb3f

Please sign in to comment.