You can do this without exposing the JMX port, e.g. by using a Prometheus exporter as javaagent (https://github.com/prometheus/jmx_exporter).
Metricsreporters, such as the one from Confluent, also don't require you to open ports, because metrics will be pushed out of the broker ( https://docs.confluent.io/current/kafka/metrics-reporter/metrics-reporter.html ). Joris On Sat, Apr 21, 2018, 14:01 Rahul Singh <rahul.xavier.si...@gmail.com> wrote: > Without JMX may be difficult.. why not install an agent and report to an > external service like ELK or new Relic? > > That’s long standing industry pattern. > > Some reading.. and some tools in the readings.. these articles are > opinionated towards the vendors that published them but its a starting > point. > > https://blog.serverdensity.com/how-to-monitor-kafka/ > https://www.datadoghq.com/blog/monitoring-kafka-performance-metrics/ > > > On Apr 21, 2018, 6:54 AM -0400, Raghu Arur <raghua...@gmail.com>, wrote: > > Hi, > > > > Is there a way to pull broker stats (like partitions its is managing, jvm > > info, state of the partitions, etc.) without using JMX. We are shipping > > kafka in a appliance and there are restrictions on the ports that are > open > > for security reasons. Are there any known ways of monitoring the health > of > > Kafka ? > > > > Thanks, > > Raghu. >