maoling commented on PR #2170: URL: https://github.com/apache/zookeeper/pull/2170#issuecomment-2173457709
We already had this feature? 1. enable the `metricsProvider.exportJvmInfo` ``` cat conf/zoo.cfg ## Metrics Providers # # https://prometheus.io Metrics Exporter metricsProvider.className=org.apache.zookeeper.metrics.prometheus.PrometheusMetricsProvider metricsProvider.httpHost=0.0.0.0 metricsProvider.httpPort=7000 metricsProvider.exportJvmInfo=true ``` 2. curl http://localhost:7000/metrics |grep "jvm_memory_bytes_" -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
