Add health endpoint 'show-components' support
Add a `show-components` property under `management.endpoint.health` and `management.endpoint.health.group.<name>` that can be used to change when components are displayed. Prior to this commit it was only possible to set `show-details` which offered an "all or nothing" approach to the resulting JSON. The new switch allows component information to be displayed whilst still hiding potentially sensitive details returned from the actual `HealthIndicator`. Closes gh-15076
This commit is contained in:
@@ -623,7 +623,7 @@ The `@Endpoint` and `@WebEndpoint` annotations should be preferred whenever poss
|
||||
=== Health Information
|
||||
You can use health information to check the status of your running application.
|
||||
It is often used by monitoring software to alert someone when a production system goes down.
|
||||
The information exposed by the `health` endpoint depends on the `management.endpoint.health.show-details` property which can be configured with one of the following values:
|
||||
The information exposed by the `health` endpoint depends on the `management.endpoint.health.show-details` and `management.endpoint.health.show-components` properties which can be configured with one of the following values:
|
||||
|
||||
[cols="1, 3"]
|
||||
|===
|
||||
|
||||
Reference in New Issue
Block a user