You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/09/02 17:17:00 UTC

[jira] [Updated] (CAMEL-15744) camel-micrometer: add ability to get micrometer metrics from Kafka Client

     [ https://issues.apache.org/jira/browse/CAMEL-15744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-15744:
--------------------------------
    Fix Version/s: Future

> 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
>             Fix For: Future
>
>
>  
> 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.20.10#820010)