英文:
Obtaining kafka topics produced and consumed by a microservice
问题
Kafka中是否有任何可用于查看微服务生产和消费的所有主题的代码/命令?
或者是否有任何可以在Spring Boot Kafka微服务上执行的命令,以获取输入和输出主题以及消费者组?
英文:
Is there any code/command I can use in Kafka to see all the topics produced and consumed by a microservice?
Alternatively is there any command I can execute on a Spring Boot kafka microservice to obtain the input and output topics and consumer group?
答案1
得分: 1
这与Kafka本身无关,主要是在寻找开放/分布式跟踪的概念。
这里有一个由Strimzi提供的示例。
英文:
This is nothing related to kafka itself, but mainly you are looking for the open/distributed tracing concept.
There are many open source tools support open tracing, like Jeager and zipkin
here is an example provided by strimzi
答案2
得分: 0
对于使用消费者组的消费者,您已经可以使用 kafka-consumer-groups.sh
来描述每个组,并查看每个客户端和使用的每个主题。
对于生产者,不行,除非有外部客户端身份验证请求监控,或者嵌入其他库,比如分布式跟踪。
英文:
For consumers using consumer groups, you can already use kafka-consumer-groups.sh
to describe every group, and see every client and every topic used.
For producers, no, there is no way. Not without external client authentication request monitoring, or embedding other libraries such as distributed tracing.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论