I am trying to write my own endpoints to return SpringBoot Actuator liveness and readiness status over /ready
, /live
and /health
without exposing any default endpoint from Actuator dependency.
When setting management.endpoints.web.exposure.exclude=*
, my code refering to HealthEndpoint
class prevents the app from starting.
Is there a way to use HealthEndpoint
class without actually exposing anything?
Or is there a way to retrieve liveness and readiness health status without HealthEndpoint
?
I’ve tried to inject HealthIndicator
livenessState
and readinessState
to no avail, I’ve had an error saying that 4 dependencies were injected instead of 1.
I’ve tried playing with exclude
and include
settings to no avail.
Maxime B is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.