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.
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
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.
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