New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kafka Stream consumer metrics were lost in the move away from KafkaConsumerMetrics #21921
Conversation
Thanks a lot @eddumelendez. Considering that this was added in Spring Kafka |
I think we should wait for 2.4. |
The problem is that the previous (deprecated) Micrometer code scraped JMX MBeans so it would automatically find consumer and producer MBeans, including those registered by Kafka streams. The issue was reported here - because the binder doesn't use Boot's producer/consumer factories. When fixing that, I realized the same issue would arise for any Boot app that uses Streams. So 👍 from me for back-porting to 2.3.x. |
Should I update the PR and point to |
I think I understand this now. There's a loss in functionality from 2.2 as the streams-related consumer metrics are gone. What is proposed here will bring them back. We think this is worth fixing in 2.3. @eddumelendez Thanks for the offer, but there's no need to update the PR unless you particularly want to. We can take care of it as part of merging the change. |
@garyrussell can you please let us know when you plan to release Spring Kafka |
@snicoll I have scheduled it for next Wednesday. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR Eddu.
I've made a few suggestions and I've noticed that the Kafka Streams is inconsistent with what we have for producers and consumers. I've added a comment in the related PR in the hope we could harmonize the contract.
...springframework/boot/actuate/autoconfigure/metrics/KafkaStreamsMetricsAutoConfiguration.java
Outdated
Show resolved
Hide resolved
...springframework/boot/actuate/autoconfigure/metrics/KafkaStreamsMetricsAutoConfiguration.java
Outdated
Show resolved
Hide resolved
...boot-project/spring-boot-actuator-autoconfigure/src/main/resources/META-INF/spring.factories
Outdated
Show resolved
Hide resolved
...n/java/org/springframework/boot/autoconfigure/kafka/StreamsBuilderFactoryBeanCustomizer.java
Outdated
Show resolved
Hide resolved
@snicoll changes were applied and now the target branch is |
thanks for the notification @garyrussell ! I have introduced new changes in the PR |
Thanks very much, @eddumelendez. |
An inner class with an Line 76 in ecbc8ea
|
See gh-21890