question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

EurekaClientAutoConfiguration#eurekaInstanceConfigBean incorrectly configures statusPageUrl and healthCheckUrl

See original GitHub issue

If the application is setting management.context-path the statusPageUrl and healthCheckUrl are constructed without it if you don’t specifically override like so:

eureka:
  instance:
    statusPageUrlPath: ${management.context-path}/info
    healthCheckUrlPath: ${management.context-path}/health

example:

application.yml

management:
  port: 9090
  context-path: /manage

The resulting eureka instance config data is showing:

...
<statusPageUrl>http://mymachine:9090/info</statusPageUrl>
<healthCheckUrl>http://mymachine:9090/health</healthCheckUrl>
...

It would be good if EurekaClientAutoConfiguration#eurekaInstanceConfigBean picked up the managementPort automatically and configured the urls properly:

...
<statusPageUrl>http://mymachine:9090/manage/info</statusPageUrl>
<healthCheckUrl>http://mymachine:9090/manage/health</healthCheckUrl>
...

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
strelok1commented, Mar 24, 2017

Geez I didn’t submit it did I, now? 😂 @ryanjbaxter. Let me review one more time and submit. Cheers

0reactions
buksvdlcommented, Jul 12, 2017

In addition to this i have external tomcat which specifies the port and context.

Read more comments on GitHub >

github_iconTop Results From Across the Web

spring cloud discovery service - healthCheckUrl - Stack Overflow
I have configured my eureka clients as mentioned in ... port information for all URLs, viz, statusPageUrl, healthCheckUrl and homePageUrl.
Read more >
1. Service Discovery: Eureka Clients - Spring Cloud
You can use placeholders to configure the eureka instance URLs, as shown in the following example: application.yml. eureka: instance: statusPageUrl: https://${ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found