no main manifest attribute, in jmx_prometheus_javaagent-0.12.0.jar

331 views
Skip to first unread message

Jayesh Patel

unread,
Apr 24, 2020, 8:56:42 AM4/24/20
to Prometheus Users

Hello guys,

I want to setup JMX exporter in my linux system and I am following https://github.com/prometheus/jmx_exporter.

I have download the jmx_prometheus_javaagent-0.12.0.jar also version 0.11.0 and also created config.yml file in my linux system.
Java 1.8 is installed in my linux system.
I was trying to setup jmx_exporter as agent using below command.

java -javaagent:./jmx_prometheus_javaagent-0.12.0.jar=8080:config.yml -jar jmx_prometheus_javaagent-0.12.0.jar

But it gives the error.

no main manifest attribute, in jmx_prometheus_javaagent-0.12.0.jar

what is the problem for this and how can I fix this ?

Thanks.

sathish kumar

unread,
May 7, 2020, 4:39:06 AM5/7/20
to Prometheus Users
java -javaagent:./jmx_prometheus_javaagent-0.12.0.jar=8080:config.yaml -jar yourJar.jar

Looks like your last argument need to point to the JAVA application you are trying to Monitor.

Thanks.

Michael JOIGNY

unread,
May 28, 2020, 11:12:22 AM5/28/20
to Prometheus Users
Hi Jayesh Patel,


Did you manage to get the exporter to work?

I would like to get the metrics from my tomcat server ? Is it possible ?

Regards.


Reply all
Reply to author
Forward
0 new messages