unit icon indicating copy to clipboard operation
unit copied to clipboard

JMX monitoring

Open flatlanderer opened this issue 5 years ago • 1 comments

I've been looking at the Unit configuration for Java: https://unit.nginx.org/configuration/#java However, I can't seem to find a way to enable JMX monitoring with NGINX Unit

For example with Tomcat server: https://tomcat.apache.org/tomcat-7.0-doc/monitoring.html#Enabling_JMX_Remote

And to be used for example in https://github.com/prometheus/jmx_exporter + Grafana java -javaagent:./jmx_prometheus_javaagent-0.14.0.jar=8080:config.yaml -jar yourJar.jar

flatlanderer avatar Dec 22 '20 05:12 flatlanderer

Unit have no special support for JMX, but it uses standard Java machine. You may try to configure monitoring using options key for your Java application.

mar0x avatar Dec 22 '20 16:12 mar0x