<p>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:</p>

<p><a href="https://github.com/prometheus/prometheus/blob/master/documentation/examples/prometheus-kubernetes.yml" rel="nofollow noreferrer">https://github.com/prometheus/prometheus/blob/master/documentation/examples/prometheus-kubernetes.yml</a></p>

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

<p>This <a href="https://github.com/micrometer-metrics/micrometer/issues/1095" rel="nofollow noreferrer">issue</a> with micrometer is the source of the problem. </p>

<p>So, we could add jmx exporter, or wait for the issue resolution.</p>
