cleanup: better or corrected variable name in grpc prometheous code

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
Humble Chirammal 2021-04-15 16:23:39 +05:30 committed by mergify[bot]
parent 0fae0e53b6
commit 54845b63c0

View File

@ -148,8 +148,8 @@ func (s *nonBlockingGRPCServer) serve(endpoint, hstOptions string, srv Servers,
klog.Fatalf("failed to parse histogram count value: %v", e) klog.Fatalf("failed to parse histogram count value: %v", e)
} }
buckets := prometheus.ExponentialBuckets(start, factor, count) buckets := prometheus.ExponentialBuckets(start, factor, count)
bktOptios := grpc_prometheus.WithHistogramBuckets(buckets) bktOptions := grpc_prometheus.WithHistogramBuckets(buckets)
grpc_prometheus.EnableHandlingTimeHistogram(bktOptios) grpc_prometheus.EnableHandlingTimeHistogram(bktOptions)
grpc_prometheus.Register(server) grpc_prometheus.Register(server)
} }
err = server.Serve(listener) err = server.Serve(listener)