generated from TrueCloudLab/basic
metrics: Add grpc msg send metrics #20
1 changed files with 9 additions and 0 deletions
|
@ -15,6 +15,9 @@ var clientMetrics = grpcprom.NewClientMetrics(
|
|||
grpcprom.WithClientStreamRecvHistogram(
|
||||
grpcprom.WithHistogramBuckets(prometheus.DefBuckets),
|
||||
),
|
||||
grpcprom.WithClientStreamSendHistogram(
|
||||
grpcprom.WithHistogramBuckets(prometheus.DefBuckets),
|
||||
),
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -57,6 +60,12 @@ func init() {
|
|||
Help: "Histogram of response latency (seconds) of the gRPC single message receive.",
|
||||
VariableLabels: []string{"grpc_type", "grpc_service", "grpc_method"},
|
||||
},
|
||||
{
|
||||
Name: "grpc_client_msg_send_handling_seconds",
|
||||
Type: dto.MetricType_HISTOGRAM.String(),
|
||||
Help: "Histogram of response latency (seconds) of the gRPC single message send.",
|
||||
VariableLabels: []string{"grpc_type", "grpc_service", "grpc_method"},
|
||||
},
|
||||
}
|
||||
metrics.MustRegister(clientMetrics, descs...)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue