mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-22 22:30:23 +00:00
cleanup: better or corrected variable name in grpc prometheous code
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
parent
0fae0e53b6
commit
54845b63c0
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user