Skip to content

Commit

Permalink
[metrics] Increase api_duration_seconds buckets
Browse files Browse the repository at this point in the history
Signed-off-by: Jared Ledvina <[email protected]>
  • Loading branch information
jaredledvina committed Jan 31, 2025
1 parent e2f9cd7 commit 0c8e40f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/api/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ func NewPrometheusMetrics(namespace, subsystem string, registry metrics.Register
Subsystem: subsystem,
Name: "api_duration_seconds",
Help: "Duration of interactions with API",
Buckets: []float64{0.005, 0.025, 0.05, 0.1, 0.2, 0.4, 0.6, 0.8, 1.0, 1.25, 1.5, 2, 3,
4, 5, 6, 8, 10, 15, 20, 30, 45, 60, 90, 120, 150, 180, 210, 240, 270, 300},
}, []string{"operation", "response_code"})

m.RateLimit = prometheus.NewHistogramVec(prometheus.HistogramOpts{
Expand Down

0 comments on commit 0c8e40f

Please sign in to comment.