[Hawkular-dev] how to play with jmx exporter

John Mazzitelli mazz at redhat.com
Wed Oct 25 09:30:05 EDT 2017


If you want to test with jmx exporter, here's three lines of code you can add to the very bottom of your Hawkular Services distro's standalone.conf file:

----
wget http://central.maven.org/maven2/io/prometheus/jmx/jmx_prometheus_javaagent/0.10/jmx_prometheus_javaagent-0.10.jar
unzip -o -j $JBOSS_HOME/modules/system/layers/hawkular/org/hawkular/nest/main/deployments/hawkular-inventory-service.war WEB-INF/classes/wildfly-10-jmx-exporter.yml
JAVA_OPTS="$JAVA_OPTS -javaagent:$JBOSS_HOME/bin/jmx_prometheus_javaagent-0.10.jar=9779:$JBOSS_HOME/bin/wildfly-10-jmx-exporter.yml"
----

Then just run the server normally. Once up, you can see the metrics at http://localhost:9779/metrics

[this email was sent on October 25 at 9:30am EDT]


More information about the hawkular-dev mailing list