Hi Matthias,We followed your recommendation and did below configuraitons in our gerrit.config[container]user = gerritjavaHome = /usr/lib/jvm/java-8-openjdk-amd64/jreheapLimit = 16gjavaOptions = "-Dflogger.backend_factory=com.google.common.flogger.backend.log4j.Log4jBackendFactory#getInstance"javaOptions = "-Dflogger.logging_context=com.google.gerrit.server.logging.LoggingContext#getInstance"javaOptions = "-Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=1234"javaoptions = "-Dcom.sun.management.jmxremote.authenticate=false"javaoptions = " -Dcom.sun.management.jmxremote.ssl=false"javaoptions = "-Djava.rmi.server.hostname=localhost"But we still do not see any metrics on port 1234.
Can you please suggest if we need more modifications to the config?Best Regards,Kiran
On Monday, 3 June 2019 09:47:06 UTC+2, Matthias Sohn wrote:On Mon, Jun 3, 2019 at 9:31 AM Arun m <arunma...@gmail.com> wrote:Hello everyone,Currently, we are using javamelody to monitor gerrit.We want to move to nagios monitoring and for this we need to enable jmx in gerrit.How to expose jmx port in gerrit to pull data the memory and cpu metrics. Can some one help ?Install the metrics-reporter-jmx plugin [1] and follow [2]. If you also want to enable Jetty MBeans sethttpd.registerMBeans=true [3].-Matthias
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/7ca812d7-6d2e-4a4c-afcb-e9a9d37360c4%40googlegroups.com.
To unsubscribe, email repo-d...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-d...@googlegroups.com.