prometheus / jmx_exporter

A process for exposing JMX Beans via HTTP for Prometheus consumption

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

no main manifest attribute, in jmx_prometheus_javaagent-0.19.0.jar

BIPINAIREE opened this issue · comments

while running the agent -
java -javaagent:./jmx_prometheus_javaagent-0.19.0.jar=12345:kafka-0-8-2.yml -jar jmx_prometheus_javaagent-0.19.0.jar

getting the message that -- no main manifest attribute, in jmx_prometheus_javaagent-0.19.0.jar

please help to fix that or share the new command

You have to add the Java agent jar (jmx_prometheus_javaagent-0.20-0.jar) and configuration file (config.yaml) to your executable jar. The paths are either absolution or relative to your working directory.

java -javaagent:./jmx_prometheus_javaagent-0.20-0.jar=12345:config.yaml -jar yourJar.jar