获取由微服务生产和消费的Kafka主题

huangapple go评论58阅读模式
英文:

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本身无关,主要是在寻找开放/分布式跟踪的概念。

有许多开源工具支持开放跟踪,如JeagerZipkin

这里有一个由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.

huangapple
  • 本文由 发表于 2023年2月27日 18:52:22
  • 转载请务必保留本文链接:https://go.coder-hub.com/75579510.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定