Skip to content

Add HealthEndpointGroupsRegistry and its Customizer #20554

@bclozel

Description

@bclozel

As of 2.2.0, Spring Boot introduced HealthEndpointGroups for grouping subsets of health indicators under a single name and correlating their status. Right now groups are driven only by configuration properties and auto-configuration; there is no way to programmatically/conditionally add new groups.

This issue aims at introducing an HealthEndpointGroupsRegistry interface that can be mutated by HealthEndpointGroupsRegistryCustomizer components (for looking into the registry, adding and deleting groups).

This infrastructure is required by #19593, since we want to automatically add"liveness" and "readiness" health groups if they are not already defined by the application.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions