spring-boot-admin icon indicating copy to clipboard operation
spring-boot-admin copied to clipboard

Use more informations from Eureka DiscoveryClient

Open lidkowiak opened this issue 11 years ago • 8 comments

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?

lidkowiak avatar Aug 21 '15 11:08 lidkowiak

Does this only apply when using the DiscoveryClient or even when using the spring-boot-admin-starter-client?

joshiste avatar Aug 29 '15 04:08 joshiste

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 .

steve-oakey avatar Aug 29 '15 11:08 steve-oakey

As in #111 mention the healthCheckUrl should also be considered

joshiste avatar Sep 30 '15 18:09 joshiste

Is there any workaround for this currently?

drissamri avatar Oct 23 '15 08:10 drissamri

@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.

sfat avatar Oct 23 '15 08:10 sfat

In a first step I made the ApplicationDiscoeryListener customizable, so in future It should be easier to exchange the behaviour.

joshiste avatar Oct 23 '15 18:10 joshiste

#159 should fix this issue, duplicates #154

jvmlet avatar Feb 16 '16 09:02 jvmlet

closed in favour of #154

joshiste avatar Feb 16 '16 21:02 joshiste