EurekaClientAutoConfiguration#eurekaInstanceConfigBean incorrectly configures statusPageUrl and healthCheckUrl
See original GitHub issueIf 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:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Geez I didn’t submit it did I, now? 😂 @ryanjbaxter. Let me review one more time and submit. Cheers
In addition to this i have external tomcat which specifies the port and context.