Kafka Producer jmx metrics missing

11/16/2019

We have Spring Boot applications deployed on OKD (The Origin Community Distribution of Kubernetes that powers Red Hat OpenShift). Without much tweaking by devops team, we got in prometheus scraped kafka consumer metrics from kubernetes-service-endpoints exporter job, as well as some producer metrics, but only for kafka connect api, not for standard kafka producer api. This is I guess a configuration for that job:

https://github.com/prometheus/prometheus/blob/master/documentation/examples/prometheus-kubernetes.yml

What is needed to change in scrape config in order to collect what's been missing?

-- hdjur_jcv
apache-kafka
kafka-producer-api
kubernetes
openshift-origin
prometheus

1 Answer

11/22/2019

This issue with micrometer is the source of the problem.

So, we could add jmx exporter, or wait for the issue resolution.

-- hdjur_jcv
Source: StackOverflow