spring-cloud / spring-cloud-gateway

An API Gateway built on Spring Framework and Spring Boot providing routing and more.
http://cloud.spring.io
Apache License 2.0
4.52k stars 3.32k forks source link

Reporting 0 (instead of null) when no traffic was recorded in spring.cloud.gateway.requests.percentile #3503

Open lukasznowak-viacom opened 1 month ago

lukasznowak-viacom commented 1 month ago

I am observing that micrometer reports 0 instead of null when there is no traffic for spring.cloud.gateway.requests.percentile metric. We have configuration for DistributionStatisticConfig, but this did not helped. The problem is not observed for http.server.requests.percentile, so it is for sure somehow related to gateway implementation.

Any idea what could be the problem?

spencergibb commented 3 weeks ago

@jonatan-ivanov any ideas?

spring-cloud-issues commented 2 weeks ago

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

jonatan-ivanov commented 1 week ago

I'm afraid this is not enough info for me to be able to understand the issue. Which registry are you using? What time series reports 0? Could you please show us an example output? If it is a counter/gauge why should it report null? (null is not a number, 0 is) How would reporting null look like (example)?

spring-cloud-issues commented 6 days ago

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.