Skip to main content

GrpcServerMetrics

Returns the gRPC server metrics singleton, initializing it on the first call. Options are ignored if the singleton has already been initialized.

def GrpcServerMetrics(
opts: ...grpcprometheus.ServerMetricsOption
) - > *grpcprometheus.ServerMetrics

Returns the gRPC server metrics singleton, initialized on the first call. Options are ignored if the metrics have already been initialized.

Parameters

NameTypeDescription
opts...grpcprometheus.ServerMetricsOptionOptional configuration settings for the gRPC server metrics. These options are only applied during the first initialization of the singleton.

Returns

TypeDescription
*grpcprometheus.ServerMetricsThe singleton instance of grpcprometheus.ServerMetrics.