[
https://issues.apache.org/jira/browse/CAMEL-15744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17333345#comment-17333345
]
Zachariah Young commented on CAMEL-15744:
-----------------------------------------
Did you find a solution for this?
> camel-micrometer: add ability to get micrometer metrics from Kafka Client
> -------------------------------------------------------------------------
>
> Key: CAMEL-15744
> URL: https://issues.apache.org/jira/browse/CAMEL-15744
> Project: Camel
> Issue Type: Improvement
> Components: camel-kafka, camel-micrometer
> Reporter: Stefan Stus
> Priority: Minor
>
>
> In Mirometer introduces an ability to get technical metrics from Kafka's
> consumers and producers.
> It seems to be production-ready since 1.5.4 based on our production
> experience and available since 1.4.0.
> See: [Micrometer
> implementation|https://github.com/micrometer-metrics/micrometer/blob/master/micrometer-core/src/main/java/io/micrometer/core/instrument/binder/kafka/KafkaClientMetrics.java]
>
> I tried to add a custom implementation to my project to extract those metrics
> from Camel. I found out that I'm unable to do it for the Kafka Consumer since
> the actual Kafka Consumer hides [deeply
> inside|https://github.com/apache/camel/blob/master/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaConsumer.java#L174-L176]
> KafkaConsumer Camel class.
> At the same time, I'm able to get KafkaProducer from Camel class [here.
> |https://github.com/apache/camel/blob/master/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaProducer.java#L83]
>
> *Desired Solution:*
> Add additional CamelKafkaMicrometerRoutePolicy to extract Kafka technical
> metrics.
> Add the ability to inject CamelKafkaMicrometerRoutePolicy into Consumer and
> Producer components.
>
> Will this feature be welcomed in Camel?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)