Skip to content

Provide a way to disable health checks with configuration #335

Description

@xstefank

Description

Provide a way to selectively disable individual health checks with MP Config values.

Proposal:

microprofile.health.check."check-name".enabled=true/false
microprofile.health.check."check-class".enabled=true/false

Use cases

Disable health check without the need to remove the implementation. This is useful when the same application deploys in different environments. We can disable checks that are not required or potentially cause problems without recompiling the application. This can also mean that we can offer avoiding having two "versions" of the same application for different environments.

Another use case is testing when we might not have dependent services available or the provided mocked instances don't offer health checks.

Seamless A/B testing when moving to the new version/implementation of a particular health check.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions