我们在 OKD(支持 Red Hat OpenShift 的 Kubernetes Origin 社区发行版)上部署了 Spring Boot 应用程序。没有经过 devops 团队的太多调整,我们在 prometheus 中从 kubernetes-service-endpoints exporter 作业中抓取了 kafka 消费者指标,以及一些生产者指标,但仅适用于 kafka connect api,而不适用于标准 kafka 生产者 api。这是我猜该工作的配置:
https://github.com/prometheus/prometheus/blob/master/documentation/examples/prometheus-kubernetes.yml
为了收集丢失的内容,需要在抓取配置中进行哪些更改?
最佳答案
这个issue用千分尺是问题的根源。
因此,我们可以添加 jmx 导出器,或者等待问题解决。
关于kubernetes - Kafka Producer jmx 指标缺失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58893023/