Use more informations from Eureka DiscoveryClient
When set management.port spring-boot-admin is not able to construct valid management URL. The same situation is when server.context-path is set (please see: http://stackoverflow.com/questions/32136490/spring-boot-actuator-enpoints-with-set-server-context-path)
Have you submitted this issue to Spring Cloud team?
Maybe a point of extension in de.codecentric.boot.admin.discovery.ApplicationDiscoveryListener as strategy pattern to construct de.codecentric.boot.admin.model.Application based on org.springframework.cloud.client.ServiceInstance would be acceptable solution?
Does this only apply when using the DiscoveryClient or even when using the spring-boot-admin-starter-client?
DiscoveryClient only. I investigated this a while ago and a possible solution (other than adding more fields to a ServiceInstance in Spring Cloud) is to use the Eureka DiscoveryClient directly (instead of the Spring Cloud wrapper). You can get much more data from this (including the generic metadata map which you could use to require a field for "managementPath".
There is an issue in Spring Cloud I believe to add more fields to ServiceInstance, I can't recall the issue number since I am replying via email on mobile,
-Steve On Aug 29, 2015 1:20 AM, "Johannes Stelzer" [email protected] wrote:
Does this only apply when using the DiscoveryClient or even when using the spring-boot-admin-starter-client?
— Reply to this email directly or view it on GitHub https://github.com/codecentric/spring-boot-admin/issues/94#issuecomment-135939214 .
As in #111 mention the healthCheckUrl should also be considered
Is there any workaround for this currently?
@drissamri I've tried in different ways using only Eureka server or modifying spring-boot-admin to override different beans, but I ended using plain spring-booot-admin because it's simpler that way.
In a first step I made the ApplicationDiscoeryListener customizable, so in future It should be easier to exchange the behaviour.
#159 should fix this issue, duplicates #154
closed in favour of #154