Skip to content

Actuator health check groups allow to specify checks only in lower case #18649

@sonatdev

Description

@sonatdev

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions