Performing MicroProfile health checks
Configure the mpHealth-1.0
feature and implement the HealthCheck
application programming interface (API) to provide health checks in your microservice.
Documentation for the MicroProfile Health feature versions 2.1 and later is available on the Open Liberty website.
About this task
mpHealth-1.0
feature provides a /health endpoint that
represents the binary status, either UP
or DOWN
, of the
microservices that are installed. A microservice can supply zero or more health checks, and the
overall health of the server is the aggregate of the status from each health check. The overall
result is positive only if all health checks report a positive result.