spring-cloud / spring-cloud-stream-binder-kafka

Spring Cloud Stream binders for Apache Kafka and Kafka Streams
Apache License 2.0
331 stars 301 forks source link

Help exposing KafkaBinderHealthIndicator / KafkaStreamsBinderHealthIndicator #1015

Closed rfogel closed 3 years ago

rfogel commented 3 years ago

Hello.

Im in need to create a custom healthcheck endpoint for my project and I steped up on this little problem. Both indicators work fine but they have package visibility so I can't autowired them to build my own custom message. Is there a way to retrieve these beans and get the information I need?

Thanks in advanced.

sobychacko commented 3 years ago

@rfogel which version of the binder are you using? We can make the configuration public so that you can override them.

rfogel commented 3 years ago

Hi @sobychacko. Here the versions im using:

image

Thanks man!

sobychacko commented 3 years ago

@rfogel I made those beans public and pushed a commit on both master and 3.0.x branches. If you update your binder versions to 3.0.11.BUILD-SNAPSHOT, you should be able to get the changes. Please let us know if you see any issues. There will be a release for 3.0.11.RELEASE later this month.