Use of felix healthchecks in karaf 4.2.6
Geschrieben 2020. Versionen und Details können veraltet sein.
I investigated the felix healthcheck framework to create kubernetes health and ready checks.
I found that the healthcheck can even be used in karaf. You have to install it manually with
install -s mvn:org.apache.commons/commons-lang3/3.9
install -s mvn:org.apache.felix/org.apache.felix.healthcheck.api/2.0.2
install -s mvn:org.apache.felix/org.apache.felix.healthcheck.core/2.0.2
install -s mvn:org.apache.felix/org.apache.felix.healthcheck.generalchecks/2.0.2
And the webconsole:
feature:install webconsole
install -s mvn:org.apache.felix/org.apache.felix.healthcheck.webconsoleplugin/2.0.0
Now you can see the check results with:
http://localhost:8181/system/console/healthcheck
The source is available under
https://github.com/apache/felix/tree/archived/healthcheck/webconsoleplugin