spring-cloud-stream: Management "/actuator/bindings" endpoint only returning last configured ConsumerChannel for Kafka
I am using Spring Cloud Stream with Kafka where I have many bindings configured. When I try to access their detail by getting “/actuator/bindings” only the last one that I include on
@EnableBinding(value = { OneConsumerChannel.class, TwoConsumerChannel.class, ThreeConsumerChannel.class})
in this case ThreeConsumerChannel.class is displayed. I have debugged the BindingsEndpoint
which return the bindings from inputBindingLifecycles list which always gets populated with the latest binding.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (7 by maintainers)
I created a customBindings actuator and it worked pretty well, it can serve as a workaround for now.
You also need to include it on the management settings: