Spring Boot 2.2.0.RELEASE provides possibility to separate health checks by different groups
(docs)
However is's impossible to add a health check with a camel case name (e.g. the built-in discSpace health check)
because its name is trimmed and converted to lower case before checking if the group contains it or not.
Take a look at the IncludeExcludeGroupMemberPredicate
class (clean method).
If the following configuration is used only the ping health check is executed.
management:
endpoint:
health:
group:
custom:
include: diskSpace,ping