This application loads a Prometheus JMX Exporter agent into running Java processes. Prometheus JMX Exporter as it is implemented can be loaded into Java processes only at JVM startup. With a small change it can be made loadable into an already running Java process. You can take a look at the change in our jmx_exporter fork
The loader expects the following configuration to be passed as system properties:
- pid - pid of the java process to inject prometheus java agent into
- prometheus.javaagent.path - path to the prometheus java agent jar
- prometheus.javaagent.configPath - path to the config file of prometheus java agent (example config file)
- prometheus.port - the port metrics can be scraped from