如何列出卡夫卡的生产者 [英] How to list producers in kafka

查看:49
本文介绍了如何列出卡夫卡的生产者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

就像Kafka Offset Monitor可以显示某个主题的活跃使用者列表一样,是否有任何工具或命令行界面或任何可以列出在给定主题上发布的生产者名称的东西?

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?

推荐答案

您可以使用Jvisualvm通过JMX查看MBean(尽管您必须在其中添加mbean浏览器插件).连接到代理后,请查看以下mbean路径:

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]

这篇关于如何列出卡夫卡的生产者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆