Hello All,
I have standalone kafka and Zookeeper instance
JXM-exporter is able to exporter JVM metrics to Prometheus but not Zookeeper related metrics
Able to see only the following metrics
Getting the following from ZK instance
---------------------------------------------------------------------------
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10402 100 10402 0 0 767k 0 --:--:-jvm_classes_loaded 2696.0
- jvm_classes_loaded_total 2696.0
-jvm_classes_unloaded_total 0.0
-:jvm_memory_bytes_used{area="heap",} 2.5018392E7
-jvm_memory_bytes_used{area="nonheap",} 2.831128E7
-:jvm_memory_bytes_committed{area="heap",} 1.13770496E8
-jvm_memory_bytes_committed{area="nonheap",} 2.9622272E7
-jvm_memory_bytes_max{area="heap",} 2.39075328E8
jvm_memory_bytes_max{area="nonheap",} -1.0
--:jvm_memory_pool_bytes_used{pool="Code Cache",} 9800960.0
-jvm_memory_pool_bytes_used{pool="Metaspace",} 1.677932E7
---------------------------------------------------------------------------
not able to see the following Zk related metrics
---------------------------------------------------------------------------
zookeeper_MaxClientCnxnsPerHost{replicaId="2",} 60.0
zookeeper_MaxClientCnxnsPerHost{memberType="Leader",replicaId="2",} 60.0
zookeeper_MaxSessionTimeout{replicaId="2",} 40000.0
zookeeper_MaxSessionTimeout{memberType="Leader",replicaId="2",} 40000.0
zookeeper_ElectionTimeTaken{memberType="Leader",replicaId="2",} 263.0
zookeeper_MaxRequestLatency{memberType="Leader",replicaId="2",} 12.0
zookeeper_ElectionType{replicaId="2",} 3.0
zookeeper_SyncLimit{replicaId="2",} 2.0
zookeeper_Tick{replicaId="2",} 2522.0
---------------------------------------------------------------------------
But If I have two ZK instances one as leader and the other one as follower, I'm able to see the metric
Please let me know if there any configuration/settings for Standalone ZK instance to get ZK metrics in Prometheus.