nginx / unit

NGINX Unit - universal web app server - a lightweight and versatile open source server that simplifies the application stack by natively executing application code across eight different programming language runtimes.
https://unit.nginx.org
Apache License 2.0
5.27k stars 324 forks source link

JMX monitoring #513

Open flatlanderer opened 3 years ago

flatlanderer commented 3 years ago

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

mar0x commented 3 years ago

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.