Kafka 消费者 - JMX 属性 [英] Kafka Consumer - JMX Properties
问题描述
我在端口 8081 上的 kafka 代理上启用了 JMX.当我在 jConsole 中查看 MBean 属性时,我只看到 kafka.consumer
-
I enabled JMX on the kafka brokers on port 8081. When I view the MBean properties in jConsole, I only see the following for kafka.consumer
-
kafka.consumer:type=FetchRequestAndResponseMetrics,name=FetchRequestRateAndTimeMs,clientId=ReplicaFetcherThread-2-413
kafka.consumer:type=FetchRequestAndResponseMetrics,name=FetchResponseSize,clientId=ReplicaFetcherThread-0-413
但没有在此处在Kafka下标识的其他任何内容消费者指标由 JMX 发出.
But none of the other ones that are identified in here under Kafka Consumer Metrics are emitted by JMX.
卡夫卡版本#0.8.2.1
Kafka Version # 0.8.2.1
我特别感兴趣 -kafka.consumer:type=ConsumerFetcherManager,name=MaxLag,clientId=([-.\w]+)
有什么想法吗?
推荐答案
您正在侦听的 JMX 端口是代理端口.但是 kafka.consumer: 的 Mbean 是消费者 jvm 指标.因此,如果您有另一个消费主题的 JVM,您可以看到 kafka.consumer Mbeans.
The JMX PORT you are listening is the broker port. But the Mbean of kafka.consumer: is the consumer jvm metrics. So if you have another JVM that is consume a topic, you can see kafka.consumer Mbeans.
这篇关于Kafka 消费者 - JMX 属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!