-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document disabling of config client health indicator. #435
Comments
That's for the config server itself, not config clients. You want |
Ok. Thanks. Would it be health.config.enabled=false or management.health.config.enabled=false? |
It's exactly what I told you it is and it wouldn't be documented in spring-boot since it's not part of spring boot. |
Ok. Thanks!! |
Sorry, but can someone explain this a bit more? I am having the same problem. Is the server in my app? How can it not be part of spring boot? Can I put something in my properties file to shut this off? |
It means that in order to stop the health check in Spring Boot to check config server you need to include the following configuration: health.config.enabled=false |
Thanks for the reply but that does not work. I am using Spring boot 1.5.9.RELEASE. I have put it in my application.properties file but it is still rebooting. Does all this run inside my spring boot app? It seems above that it is running elsewhere? I am in Azure and maybe it is pinging my app?
|
Is it still a problem with Finchley.RELEASE? |
I can't figure it out. There are about 4 posts on the web about it and none of it works. |
@markthegrea are you using Spring Cloud Config? |
I have a standalone app. I am doing this in the Azure Cloud. What I don't understand is the above quote: "It's exactly what I told you it is and it wouldn't be documented in spring-boot since it's not part of spring boot." How can this not be part of spring boot? Does Spring Boot somehow monitor itself? |
|
The property is now defined by `@ConditionalOnEnabledHealthIndicator` Fixes gh-435
Despite setting Alas, I finally discovered in spring-cloud-context-2.1.3.RELEASE.jar the existence of these 2 files: spring-configuration-metadata.json
additional-spring-configuration-metadata.json
So basically the prop name we can see everywhere is erroneous, it's actually e.g. official doc @ https://cloud.spring.io/spring-cloud-config/reference/html/#_health_indicator_2 Also found an answer from 2017 telling the correct properties: https://stackoverflow.com/a/46775306 |
As I understand, the property defined in http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html#_health_indicator should deactivate the config server validation in the spring boot /health endpoint. However we have not been able to deactivate this check using this property. Could it be a bug or we didn't get the point in the above documentation?
The text was updated successfully, but these errors were encountered: