简体   繁体   中英

How to get Apache Kafka metrics in JSON format

I'm trying to get Apache Kafka health metrics such as Broker, Producer, Consumer, Zookeeper, Topics, etc. metrics without using Confluent or any other software/plugin.

I need to expose these and store them in Elasticsearch. So far not able to extract this info. Any pointers on how I can extract this information from a running Apache Kafka docker container?

As @Seyed Morteza Mousavi says, the metrics are exposed through JMX.

You're going to need additional software/plugin to get the data though. If you're using Elasticsearch then within the same stack is Beats which can stream JMX metrics to Elasticsearch directly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM