Skip to content
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

Add missing configuration metadata for "management.endpoint.health.probes.add-additional-paths" #30562

Closed
wants to merge 1 commit into from

Conversation

luozhenyu
Copy link
Contributor

According to the documentation of spring-boot-actuator, we can define "management.endpoint.health.probes.add-additional-paths=true" to enable liveness and readiness. However, the configuration metadata for this is missing.

If your Actuator endpoints are deployed on a separate management context, the endpoints do not use the same web infrastructure (port, connection pools, framework components) as the main application. In this case, a probe check could be successful even if the main application does not work properly (for example, it cannot accept new connections). For this reason, is it a good idea to make the liveness and readiness health groups available on the main server port. This can be done by setting the following property:

management.endpoint.health.probes.add-additional-paths=true

https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#actuator.endpoints.kubernetes-probes

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 6, 2022
luozhenyu added a commit to luozhenyu/spring-boot that referenced this pull request Apr 6, 2022
health.probes.add-additional-paths" in spring boot actuator
autoconfigure.

Closes spring-projectsgh-30562
luozhenyu added a commit to luozhenyu/spring-boot that referenced this pull request Apr 6, 2022
health.probes.add-additional-paths' in spring boot actuator
autoconfigure.

Closes spring-projectsgh-30562
luozhenyu added a commit to luozhenyu/spring-boot that referenced this pull request Apr 6, 2022
The configuration metadata of "management.endpoint.health.probes.
add-additional-paths" is missing.

Closes spring-projectsgh-30562
@luozhenyu luozhenyu changed the title Add the missing configuration metadata for add-additional-paths. Add the missing configuration metadata for "management.endpoint.health.probes.add-additional-paths". Apr 6, 2022
@luozhenyu luozhenyu marked this pull request as ready for review April 6, 2022 17:13
Copy link
Member

@snicoll snicoll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. I've left a comment for your consideration.

I believe this change was introduced in 2.6.x so the current base branch doesn't look right.

@@ -54,6 +54,12 @@
"description": "Whether to enable liveness and readiness probes.",
"defaultValue": false
},
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should come before the previous entries as we sort them by alphabetical order.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I have rearranged it.

@snicoll snicoll added the status: waiting-for-feedback We need additional information before we can continue label Apr 7, 2022
The configuration metadata of "management.endpoint.health.probes.
add-additional-paths" is missing.

Closes spring-projectsgh-30562
@luozhenyu luozhenyu changed the base branch from 2.5.x to 2.6.x April 7, 2022 06:49
@luozhenyu
Copy link
Contributor Author

luozhenyu commented Apr 7, 2022

Thanks for the PR. I've left a comment for your consideration.

I believe this change was introduced in 2.6.x so the current base branch doesn't look right.

@snicoll You are right. I changed the base branch to2.6.x.

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Apr 7, 2022
@snicoll snicoll added type: documentation A documentation update and removed status: waiting-for-triage An issue we've not yet triaged status: feedback-provided Feedback has been provided labels Apr 7, 2022
@snicoll snicoll self-assigned this Apr 7, 2022
@snicoll snicoll added this to the 2.6.7 milestone Apr 7, 2022
@snicoll snicoll changed the title Add the missing configuration metadata for "management.endpoint.health.probes.add-additional-paths". Add missing configuration metadata for "management.endpoint.health.probes.add-additional-paths" Apr 7, 2022
@snicoll snicoll closed this in fa77e1c Apr 7, 2022
@snicoll
Copy link
Member

snicoll commented Apr 7, 2022

@luozhenyu thank you for the quick follow-up and for making your first contribution to Spring Boot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation A documentation update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants