grpc-ecosystem / grpc-spring

Spring Boot starter module for gRPC framework.
https://grpc-ecosystem.github.io/grpc-spring/
Apache License 2.0
3.49k stars 819 forks source link

Metric grpc_server_processing_duration_seconds_max is always 0 #1108

Closed rick-alp closed 4 months ago

rick-alp commented 4 months ago

The context

What do you wish to achieve?

The bug

grpc_server_processing_duration_seconds_max is always 0 no matter what the call with version 3.0.0.RELEASE, grpc_server_processing_duration_seconds_sum and grpc_server_processing_duration_seconds_count are okay.

Steps to Reproduce

Enable metrics, make a grpc call grpc_server_processing_duration_seconds_max should not be 0

Which versions do you use?

Additional context

ST-DDT commented 4 months ago

The metrics is from micrometer, please report this issue upstream:

https://github.com/micrometer-metrics/micrometer/blob/8e877cf4bd9657a0764b8a21f7a7b03583dcd99a/micrometer-core/src/main/java/io/micrometer/core/instrument/binder/grpc/MetricCollectingServerInterceptor.java#L63

ST-DDT commented 4 months ago

Ref: