strimzi-kafka-bridge icon indicating copy to clipboard operation
strimzi-kafka-bridge copied to clipboard

Strimzi specific metrics not exposed with JMX.

Open samik1996 opened this issue 4 years ago • 3 comments

I'm enabling JMX port for Strimzi -Kafka bridge by adding these lines in the Kafka-Bridge.sh file.

-Dcom.sun.management.jmxremote.port=9250 -Dcom.sun.management.jmxrempte.rmi.port=9250 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false

After this, when I run strimzi and check it in JConsole for the available Metrics, I only get to see basic Java metrics. But no Strimzi specific metrics are available.

Is there a way to enable strimzi specific Metrics? Is there any more configuration required? Am I missing something?

Screenshot 2020-03-06 at 5 08 16 PM

samik1996 avatar Mar 06 '20 15:03 samik1996

I do not think the Bridge provides any specific metrics at this point. And the future plans would probably add them as Prometheus metrics rather than JMX.

scholzj avatar Mar 06 '20 16:03 scholzj

I am looking for Kafka Lag. Does it provide Kafka Lag metric?

samik1996 avatar Mar 09 '20 08:03 samik1996

The Kafka Exporter provides lag metrics: https://strimzi.io/docs/latest/full.html#assembly-kafka-exporter-configuration-deployment-configuration-kafka

scholzj avatar Mar 09 '20 09:03 scholzj

As today, the bridge provides metrics via Prometheus related to producer and consumer but not lag and as Jakub mentioned it's provided by Kafka Exporter. Because this issue is stale I am going to close this. @samik1996 feel free to re-open if needed.

ppatierno avatar Nov 19 '22 16:11 ppatierno