Reputation: 720
How can I select some attributes from monitoring of Kafka with JMX using kafka.tools.JmxTool
?
Upvotes: 0
Views: 205
Reputation: 191681
/bin/kafka-run-class.sh kafka.tools.JmxTool --object-name 'kafka.server:type=BrokerTopicMetrics,name=MessagesInPerSec,topic=MyTopic'
--attributes 'Count,MeanRate,OneMinuteRate' --jmx-url service:jmx:rmi:///jndi/rmi://127.0.0.1:9999/jmxrmi
Upvotes: 1