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.

On Friday, April 24, 2020 at 6:26:42 PM UTC+5:30, Jayesh Patel wrote:
>
> 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.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/e353abc8-9d83-440a-9077-d0491b719ef2%40googlegroups.com.

Reply via email to