Hi,
I intend to check the actuator endpoints in my Jmix application (version 2.0.2) but somehow I cannot make it work. I setup my application in the same way I did in case of my previous application that was written in Jmix 1.4.4. So I added the following configuration:
Build gradle dependencies:
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'io.micrometer:micrometer-registry-prometheus'
Application properties:
management.server.port= 8081
management.endpoints.web.exposure.include= health, info, prometheus
management.endpoint.health.probes.enabled= true
This configuration worked well with 1.4.4 but provides an error with 2.0.2. When I try to check an actuator endpoint on localhost I experience the following: The application runs on port 8080, endpoints should be available on 8081. When I try to access ‘info’ endpoint by sending a get request to ‘actuator/info’ endpoint on 8081, it redirects it to ‘/login’ path again and again and it creates an endless loop that results in a ‘Error: Exceeded maxRedirects. Probably stuck in a redirect loop http://localhost:8081/login’ error message.
Please advise how to solve this issue and get the metrics of the running application.
Thanks,
Peter