I have a Spring Boot 2.6.0-M1 project with Jubilee (But issue can be reproduced since 2.4). In my project, I am using Actuator, Spring cloud Kubernetes, and Resilience4J (not Spring Cloud Circuit breaker)
Very happy about this combination. Resilience4J is working fine, the circuit breaker goes into open states etc. Kubernetes detect the config maps, etc... Very happy.
However, on a actuator health endpoint, I am seeing this :
"circuitBreakers":{"status":"UNKNOWN"}
And checked my configuration, management.health.circuitbreakers.enabled: true
How do I get the correct status, and not this "UNKNOWN" please?
Thank you
In order to use actuator along with resilience 4j please use the configuration mentioned below.
Make sure to add your service name and it works perfectly.
resilience4j.retry.instances.customerService.max-attempts: 3
resilience4j.retry.instances.customerService.wait-duration: 5s
management.endpoint.health.show-details: "ALWAYS"
management.health.circuitbreakers.enabled: false
management.health.ratelimiters.enabled: true
resilience4j.circuitbreaker.configs.default.registerHealthIndicator: true