How to monitor JMX metrics of Kafka broker on command line?

前端 未结 1 2069
抹茶落季
抹茶落季 2021-02-15 00:05

A Kafka cluster can be monitored in granular detail via the JMX metrics it exposes. Usually an external GUI or application like jconsole needs to be hooked up to a

1条回答
  •  暖寄归人
    2021-02-15 00:25

    Download the jar located here:

    https://sourceforge.net/projects/cyclops-group/files/jmxterm/1.0-alpha-4/

    On the machine, then run:

    wget https://sourceforge.net/projects/cyclops-group/files/jmxterm/1.0-alpha-4/ -o jmxterm.jar

    java -jar jmxterm.jar

    >open localhost:$jmx_port

    Help will give you what you need after that :)

    Save this jar somewhere useful, I use it nearly every day.

    0 讨论(0)
提交回复
热议问题