I have configured resilience4j-micrometer
and spring-boot-starter-actuator
in my service. Apparently this is enough to see metrics in Datadog but I do not see the values populated for the metric for example resilience4j_circuitbreaker_not_permitted_calls_total
even though i see logs in my service that the circuit breaker is OPEN.
I tried to create a bean and do the following but no luck.
@Bean
public MeterRegistry enableCircuitBreakerMetrics() {
final CircuitBreakerRegistry circuitBreakerRegistry = CircuitBreakerRegistry.ofDefaults();
return registry -> {
TaggedCircuitBreakerMetrics
.ofCircuitBreakerRegistry(circuitBreakerRegistry)
.bindTo(circuitBreakerRegistry );
};
}
Am I missing anything here? Could someone help? I have 2 feign clients where the circuit breaker name for this is autogenerated.