Skip to content

Commit 0a041cd

Browse files
kakkoyunAleksey Sin
authored andcommitted
Re-adjust histogram buckets (thanos-io#1769)
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com> Signed-off-by: Aleksey Sin <asin@ozon.ru>
1 parent ea3972d commit 0a041cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/thanos/query.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func registerQuery(m map[string]setupFunc, app *kingpin.Application) {
168168
func storeClientGRPCOpts(logger log.Logger, reg *prometheus.Registry, tracer opentracing.Tracer, secure bool, cert, key, caCert, serverName string) ([]grpc.DialOption, error) {
169169
grpcMets := grpc_prometheus.NewClientMetrics()
170170
grpcMets.EnableClientHandlingTimeHistogram(
171-
grpc_prometheus.WithHistogramBuckets(prometheus.ExponentialBuckets(0.001, 2, 15)),
171+
grpc_prometheus.WithHistogramBuckets([]float64{0.001, 0.01, 0.1, 0.3, 0.6, 1, 3, 6, 9, 20, 30, 60, 90, 120}),
172172
)
173173
dialOpts := []grpc.DialOption{
174174
// We want to make sure that we can receive huge gRPC messages from storeAPI.

0 commit comments

Comments
 (0)