Skip to content

Commit

Permalink
other(metrics): add shorter buckets to API request duration histograms
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrus committed Apr 5, 2022
1 parent 3350fd2 commit e861d1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpc/metrics/metrics.go
Expand Up @@ -6,7 +6,7 @@ import (
)

var (
durations = promauto.NewHistogramVec(prometheus.HistogramOpts{Name: "oasis_emerald_web3_gateway_api_seconds", Buckets: []float64{.005, .01, .025, .05, .1, .25, .5, 1, 2.5, 5, 10, 20, 30}, Help: "Histogram for the eth API requests duration."}, []string{"method_name"})
durations = promauto.NewHistogramVec(prometheus.HistogramOpts{Name: "oasis_emerald_web3_gateway_api_seconds", Buckets: []float64{0.00001, 0.0001, .001, .005, .01, .025, .05, .1, .25, .5, 1, 2.5, 5, 10}, Help: "Histogram for the eth API requests duration."}, []string{"method_name"})
requests = promauto.NewCounterVec(prometheus.CounterOpts{Name: "oasis_emerald_web3_gateway_api_request", Help: "Counter for API requests."}, []string{"method_name"})
failures = promauto.NewCounterVec(prometheus.CounterOpts{Name: "oasis_emerald_web3_gateway_api_failure", Help: "Counter for API request failures."}, []string{"method_name"})
successes = promauto.NewCounterVec(prometheus.CounterOpts{Name: "oasis_emerald_web3_gateway_api_success", Help: "Counter for API successful requests."}, []string{"method_name"})
Expand Down

0 comments on commit e861d1c

Please sign in to comment.