How to list producers in kafka

本小妞迷上赌 提交于 2019-12-04 19:23:31

问题


Just as Kafka Offset Monitor can show a list of active consumers of a topic, is there any tool or command line interface or anything that can list the name of producers publishing on a given topic?


回答1:


You can view the MBeans over JMX, perhaps using jvisualvm (though you'll have to add the mbean browser plugin to it). Once you connect to the broker, look in the following mbean path:

kafka.server -> Produce -> [contains your list of producers]



来源:https://stackoverflow.com/questions/32497325/how-to-list-producers-in-kafka

标签

工具导航Map

JSON相关