This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch health in repository https://gitbox.apache.org/repos/asf/camel.git
commit 33a5f1db4d693e1f0e4b73df89d455d9dc425759 Author: Claus Ibsen <[email protected]> AuthorDate: Wed Feb 9 11:06:01 2022 +0100 CAMEL-17587: camel-health - Make Health Check API simpler --- .../ROOT/pages/camel-3x-upgrade-guide-3_16.adoc | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide-3_16.adoc b/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide-3_16.adoc index ff26a48..b7c8e49 100644 --- a/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide-3_16.adoc +++ b/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide-3_16.adoc @@ -63,6 +63,34 @@ These options would complicate health checks as they affect the outcome of healt It is better the checks always execute and the responsibility of the monitoring systems how to deal with interval between checks and thresholds. +==== Disabling health checks + +The configuration for disabling individual health-checks has changed + +Before each health-check could be configured and set `enabled=false`. For example +to disable health-checks for route with id `netty` you would do: + +[source,properties] +---- +camel.health.config[netty].check = routes +camel.health.config[netty].enabled = false +---- + +With Camel 3.16 onwards you instead specify pattern(s) for health checks to be excluded +from being invoked, which is done in a single configuration: + +[source,properties] +---- +camel.health.exclude-pattern = netty +---- + +You can specify multiple patterns (and use wildcards) such as: + +[source,properties] +---- +camel.health.exclude-pattern = netty,foo,bar* +---- + === camel-main The option `camel.main.packageScanRouteBuilders` has been renamed to `camel.main.basePackageScan`.
