Hi, i have problem with configure percentiles(quantiles) for actuator/metrics/prometheus endpoint for http requests with @PathVariable
if i enable
management:
metrics:
web:
server:
request:
autotime:
percentiles: 0.5,0.75,0.95,0.99,0.999
i see this:
(quantiles calculated only for requests without @PathVariable, not calculated for /matching). If i create custom WebMvcTagsProvider, quantile not calculated too.
Please add quantile calculation for requests with @PathVariable. Thanks
Comment From: wilkinsona
Thanks for the report.
I don't think the use of @PathVariable
should make a difference here as the code that calculates the percentiles knows nothing of Spring MVC and @PathVariable
. As things stand, I don't understand the behaviour that you're seeing.
One possible explanation is that your controller method that handles consolidations/{consId}/matching
is annotated with @Timed
. This will cause the auto-time configuration properties to have no effect and you should use @Timed
's percentiles
attribute instead.
If you're not using @Timed
and you would like us to spend some more time investigating, please spend some time providing a complete yet minimal sample that reproduces the problem. You can share it with us by pushing it to a separate repository on GitHub or by zipping it up and attaching it to this issue.
Comment From: VovkaSOL
@wilkinsona Thanks for you answer, i start to prepare minimal sample and find @Timed annotation on this controller. After remove it i see quantiles in /prometheus. Very very thanks for help, good luck.
Comment From: wilkinsona
Excellent. Thanks very much for letting us know.