unit
unit copied to clipboard
JMX monitoring
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
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.