You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading my app to spring boot 2.7.0 the http_server_requests_seconds_count prometheus metric is missing.
Found that the bean in charge org.springframework.boot.actuate.autoconfigure.metrics.web.servlet.WebMvcMetricsAutoConfiguration.webMvcMetricsFilter is not instantiated any longer since a @ConditionalOnMissingBean was added.
The debug of the bean initialization:
...
WebMvcMetricsAutoConfiguration#webMvcMetricsFilter:
Did not match:
- @ConditionalOnMissingBean (types: org.springframework.boot.web.servlet.FilterRegistrationBean; SearchStrategy: all) found beans of type 'org.springframework.boot.web.servlet.FilterRegistrationBean' logbackAccessSecurityServletFilter, traceIdInResponseFilterRegistration (OnBeanCondition)
...
shows that there are already FilterRegistrationBeans present which is prohibiting the instantiation of org.springframework.boot.actuate.autoconfigure.metrics.web.servlet.WebMvcMetricsAutoConfiguration.webMvcMetricsFilter?
Springboot 2.5.14 has a bug in its actuator that does not automatically
activate HTTP statiscis. iThis bug is causing our CSITs to fail in the
master branch.
This is fixed in the latest version of Springboot.
See: spring-projects/spring-boot#31263
Issue-ID: POLICY-4143
Change-Id: I04e56e81f06abf0416918df606f1d413b3eb4c1b
Signed-off-by: liamfallon <liam.fallon@est.tech>
Spring Boot 2.7.0
After upgrading my app to spring boot 2.7.0 the
http_server_requests_seconds_count
prometheus metric is missing.Found that the bean in charge
org.springframework.boot.actuate.autoconfigure.metrics.web.servlet.WebMvcMetricsAutoConfiguration.webMvcMetricsFilter
is not instantiated any longer since a @ConditionalOnMissingBean was added.The debug of the bean initialization:
shows that there are already FilterRegistrationBeans present which is prohibiting the instantiation of
org.springframework.boot.actuate.autoconfigure.metrics.web.servlet.WebMvcMetricsAutoConfiguration.webMvcMetricsFilter
?Example:
test-http-metrics.zip
The text was updated successfully, but these errors were encountered: