Skip to content

outlyerapp/java-metrics

Repository files navigation

java-metrics

  1. Install the latest RPM from http://central.maven.org/maven2/org/jmxtrans/jmxtrans/

  2. wget the appropriate .json files from this repo into /var/lib/jmxtrans

  3. Find and replace SERVER, PORT and APIKEY_FINGERPRINT

  4. service jmxtrans restart

Troubleshooting

Check /var/log/jmxtrans/jmxtrans.log

The APIKEY_FINGERPRINT is a concetenation (with no spaces or other separators) of the Dataloop API Key and the agent fingerprint that you want the metrics to appear under.

You can find your API Key in /etc/dataloop/agent.conf

You can find your agent fingerprint in /etc/dataloop/agent.finger

The SERVER and PORT strings refer to the JMX connection details. If you are running jmxtrans on the same machine as the service you wish to monitor then SERVER will be 'localhost' and PORT will be whatever port JMX runs on.

Enabling JMX

Each service will require slightly different instructions. Here is a good link for Tomcat7 : http://tomcat.apache.org/tomcat-7.0-doc/monitoring.html (the 'enabling jmxremote' section).

With Kafka it was as simple as starting with the JMX_PORT environment variable set.

env JMX_PORT=8110 bin/kafka-server-start.sh config/server.properties

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published