spring-boot: Jolokia Actuator Endpoint is not available when using Reactive/WebFlux Web Application
When adding a jolokia-core dependency to a WebFlux (not MVC) Web Application, the Jolokia actuator endpoint is not being enabled because the application type condition match is failing.
JolokiaEndpointAutoConfiguration": {
"notMatched": [
{
"condition": "OnWebApplicationCondition",
"message": "not a servlet web application"
}
],
"matched": [
{
"condition": "OnClassCondition",
"message": "@ConditionalOnClass found required class 'org.jolokia.http.AgentServlet'"
}
]
},
Is there a way to make it work in a WebFlux app?
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (9 by maintainers)
I implemented a POC of WebFlux Jolokia integration. Probably it’s not complete and has some flaws but it seems to work.
Comments and suggestions in order to improve it are appreciated.
I use Micrometer with Prometheus now
@taxone, thank you!
I modified your code a little, which as a result allows me to use
Spring Boot 3,WebFlux,Jolokia 2andSpring Boot Admin. In particular, a custom actuator endpoint was created instead of aRestController:Gradle dependencies:
Maybe someone will find this useful.