Ali Ait-Bachir
Ali Ait-Bachir

Reputation: 720

Kafka monitoring JMX : choose some attributes

How can I select some attributes from monitoring of Kafka with JMX using kafka.tools.JmxTool?

Upvotes: 0

Views: 205

Answers (1)

OneCricketeer
OneCricketeer

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

Related Questions