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
| Name | Type | Description |
|---|---|---|
| opts | ...grpcprometheus.ServerMetricsOption | Optional configuration settings for the gRPC server metrics. These options are only applied during the first initialization of the singleton. |
Returns
| Type | Description |
|---|---|
*grpcprometheus.ServerMetrics | The singleton instance of grpcprometheus.ServerMetrics. |