Hi,

I enabled imx on kafka brokers by adding
KAFKA_JMX_OPTS= KAFKA_JMX_OPTS="
-Dcom.sun.management.jmxremote=true
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Djava.rmi.server.hostname=<server_IP>
-Djava.net.preferIPv4Stack=true “
However, when I use ‘kafka.tools.JmxTool’ to get the metrics, it outputs
unix time stamps which is not the expected behavior.

Eg:  sh /usr/local/kafka/bin/kafka-run-class.sh kafka.tools.JmxTool
--object-name
'kafka.server:type=BrokerTopicMetrics,name=AllTopicsMessagesInPerSec'
--jmx-url service:jmx:rmi:///jndi/rmi://<server_IP>:9111/jmxrmi
The above command prints out unix time stamps. How can I fix this and have
it print out the metrics?

Thank you.

Reply via email to