Skip to content

Allow HealthIndicator registration in runtime #4894

Closed
@vpavic

Description

@vpavic

Currently HealthIndicator instances are required to be registered as Spring beans in order to provide health information. This means that Boot's Health information infrastructure cannot be easily used for health information on integration points which are not known when application context is created, or are simply dynamic by nature and can be changed in runtime.

IMO introduction of something like HealthIndicator registry would allow this use case while also retaining compatibility with current approach.

If this suggestion is accepted I'd be willing to work on a PR to provide such functionality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions