I've added the JMX entries to the catalina.sh file and JMX is listening on 127.0.0.1:9000.
I downloaded the jar file and the tomcat.yml config example from the JMX exporter project, and added the hostPort entry to tomcat.yml.
`hostPort: 127.0.0.1:9000`
I've attempted to run it like so:
java -javaagent:./jmx_prometheus_javaagent-0.9.jar=1234:tomcat.yml
...it takes a few seconds and then just returns this and then the rest of the java usage info...
2017-06-06 14:30:49.429:INFO:ipjsoejs.Server:jetty-8.y.z-SNAPSHOT
2017-06-06 14:30:49.532:INFO:ipjsoejs.AbstractConnector:Started SelectChann...@0.0.0.0:1234
Usage: java [-options] class [args...]
.....
The README indicates I need a -jar somefile.jar on the end of that command, but I'm not sure what needs to go there. The vendor's war file?
Thanks,
Matt
--- hostPort: localhost:5555 username: password: rules: - pattern: ".*"
Interesting... when I switched to the javaagent way of doing it, I lost all the Catalina metrics. My config.yaml looks like this...--- hostPort: localhost:5555 username: password:
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
To post to this group, send email to prometheus-developers@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/9d230c13-5d28-4115-a91b-062635e07da3%40googlegroups.com.
I am facing issue during configure the jmx exporter .
Could you please help me to configure.
Which entry i need to put in catalina.sh
I am folloing this blog by which i need to add jvm parameter in java application.
but i am unable to find location.
Please suggest.