简体   繁体   English

如何为 Stramzi-Kafka 桥启用 JMX 指标

[英]How to enable JMX Metrics for Strimzi-Kafka Bridge

I'm enabling JMX port for Strimzi-Kafka bridge by adding these lines in the Kafka-Bridge.sh file.我通过在 Kafka-Bridge.sh 文件中添加这些行来为 Strimzi-Kafka 桥启用 JMX 端口。

-Dcom.sun.management.jmxremote.port=9250
-Dcom.sun.management.jmxremote.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.在此之后,当我运行 strimzi 并在 JConsole 中检查可用指标时,我只能看到基本的 Java 指标。 But no Strimzi specific metrics are available.但是没有可用的Strimzi 特定指标。

Strimzi-Kafka-Bridge 应用程序公开指标的 JConsole 图像

Is there a way to enable strimzi specific Metrics?有没有办法启用 strimzi 特定的指标? Is there any more configuration required?是否需要更多配置?

The Strimzi HTTP Bridge doesn't support JMX connections. Strimzi HTTP Bridge 不支持 JMX 连接。 So I do not think you can do that.所以我认为你不能这样做。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM