When using Jersey (not Spring) annotated endpoints and also using Micrometer Prometheus integration, the "prometheus" actuator endpoint shows "UNKNOWN" in the uri instead of the path pattern.
ServerHttpObservationFilter does not fill pathPattern.
In the org.springframework.http.server.observation.DefaultServerRequestObservationConvention class, the protected KeyValue uri(ServerRequestObservationContext context) method tries to get context.getPathPattern() but it is always null.
Reproduction sample project with instructions: https://github.com/bergerdenes/metrics-repro
The suggested workaround, @SpringBootApplication(exclude=WebMvcObservationAutoConfiguration.class) annotation solves the issue.
Details are at spring-projects/spring-framework#32099 (I was redirected from there)