Reputation: 29
We have Spring Boot Application (Application 1 , which runs on Spring Boot 1.5 and Java 1.8 , and we are trying to use dependency Spring Boot Admin Client 2.0). Now we have another application (Application 2 , which is on Spring Boot 2.0 , Java 1.8 and Spring Boot Admin Server 2.0 .) We need to set up communication between both of them. We tried tweaking few things but the client fails to register with server. (Application 1 fails to get register with Application 2). Any help would be appreciated . We cannot upgrade to Spring Boot 2.0 for our spring client (Application 1) but wanted to use new Spring Boot Admin server to display stats.
Upvotes: 0
Views: 3711
Reputation: 4532
Spring Admin Server 2.x is compatible with Spring boot 2.x application and not with spring boot 1.x application. The main reason in that from Spring boot 1.x and 2.x the actuator module is significantly changed, starting from security concern to how those endpoint are exposed even in the path. The my advice is use a Spring Boot Admin Server 1.x for Spring Boot 1.x application because.
Update
However it is possible force the usage of spring boot admin 2 with legacy Spring boot 1.5 how described on Monitoring Spring Boot 1.5.x section of the official spring boot admin documentation
Upvotes: 2
Reputation: 21
https://codecentric.github.io/spring-boot-admin/current/#monitoring-spring-boot-1.5.x
Reconfigure the api path for Spring Boot Admin Client 1.5.x:
application.yml spring.boot.admin.api-path: instances As some of the actuator endpoints changed with the Spring Boot 2 release not all options might be available (e.g. /metrics endpoint); for some of the endpoints we provide legacy converters.
Upvotes: 2