kafka-jmx.sh: read JMX metrics from a Kafka node
kafka-jmx.sh [options]
Options you will use
--jmx-url <String>- service:jmx:rmi:///jndi/rmi://host:9999/jmxrmi
--object-name <String>- the MBean (patterns with * allowed), e.g. kafka.server:type=ReplicaManager,name=UnderReplicatedPartitions.
--one-time <Boolean>- read once and exit.
--report-format <String>- original (CSV, default), properties, csv, tsv.
--attributes <String>- only these attributes.
--reporting-interval <Integer>- ms between reads (default 2000).
Gotchas
- "Trying to connect to JMX url" is printed on stderr; the values on stdout.
Taught in
Try kafka-jmx.sh in a real terminal Free, in your browser - a real Ubuntu terminal to try it in, with missions that check your work.