Skip to content

Commit

Permalink
Remove bucket change for another PR
Browse files Browse the repository at this point in the history
  • Loading branch information
pgporada committed Jul 12, 2024
1 parent 306bf9f commit c2d4c9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions grpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ type clientMetrics struct {
func newClientMetrics(stats prometheus.Registerer) (clientMetrics, error) {
// Create the grpc prometheus client metrics instance and register it
grpcMetrics := grpc_prometheus.NewClientMetrics(
grpc_prometheus.WithClientHandlingTimeHistogram(
grpc_prometheus.WithHistogramBuckets([]float64{.005, .01, .025, .05, .1, .25, .5, 1, 2.5, 5, 10, 20, 30, 60, 90}),
),
grpc_prometheus.WithClientHandlingTimeHistogram(),
)
err := stats.Register(grpcMetrics)
if err != nil {
Expand Down
4 changes: 1 addition & 3 deletions grpc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,7 @@ type serverMetrics struct {
func newServerMetrics(stats prometheus.Registerer) (serverMetrics, error) {
// Create the grpc prometheus server metrics instance and register it
grpcMetrics := grpc_prometheus.NewServerMetrics(
grpc_prometheus.WithServerHandlingTimeHistogram(
grpc_prometheus.WithHistogramBuckets([]float64{.005, .01, .025, .05, .1, .25, .5, 1, 2.5, 5, 10, 20, 30, 60, 90}),
),
grpc_prometheus.WithServerHandlingTimeHistogram(),
)
err := stats.Register(grpcMetrics)
if err != nil {
Expand Down

0 comments on commit c2d4c9b

Please sign in to comment.