You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Jaikiran Pai (Jira)" <ji...@apache.org> on 2021/02/13 12:59:00 UTC

[jira] [Commented] (KAFKA-10360) Disabling JmxReporter registration

    [ https://issues.apache.org/jira/browse/KAFKA-10360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17284208#comment-17284208 ] 

Jaikiran Pai commented on KAFKA-10360:
--------------------------------------

I think this would be a useful enhancement. We have been using Kafka for around 6 years now and during all these years we have only used these metrics maybe 2 or 3 times. For us these metrics don't add much value and we would like to optional disable them. I have meant to ask for this enhancement for a while now, but kept pushing it out. What prompted me to post today is that while looking at the JVM memory usage of one of our products, I noticed these entries:

 

```

26: 710 34080 org.apache.kafka.common.metrics.stats.SampledStat$Sample
 27: 1004 32128 org.apache.kafka.common.MetricName
 28: 1004 32128 org.apache.kafka.common.metrics.KafkaMetric

```

These values may not be too high, but the mere fact they are there and aren't 0 isn't a good thing for us, since we don't need these metrics.

 

> Disabling JmxReporter registration 
> -----------------------------------
>
>                 Key: KAFKA-10360
>                 URL: https://issues.apache.org/jira/browse/KAFKA-10360
>             Project: Kafka
>          Issue Type: New Feature
>          Components: clients
>            Reporter: Romain Quinio
>            Priority: Minor
>
> In Kafka client applications, JMX usage is often being replaced in favor of frameworks like micrometer or microprofile-metrics.
> It would be nice to be able to disable the JmxReporter that is today built-in with KafkaProducer/KafkaConsumer/KafkaStreams
> [https://github.com/apache/kafka/blob/783a6451f5f8c50dbe151caf5e76b74917690364/clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java#L355-L357]
> [https://github.com/apache/kafka/blob/ffdec02e25bb3be52ee5c06fe76d388303f6ea43/clients/src/main/java/org/apache/kafka/clients/consumer/KafkaConsumer.java#L869-L871]
> [https://github.com/apache/kafka/blob/42f46abb34a2b29993b1a8e6333a400a00227e30/streams/src/main/java/org/apache/kafka/streams/KafkaStreams.java#L685-L687]
> Example of issue in Quarkus: https://github.com/quarkusio/quarkus/issues/9799



--
This message was sent by Atlassian Jira
(v8.3.4#803005)