Giter Site home page Giter Site logo

java-metrics's Introduction

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

java-metrics's People

Contributors

sacreman avatar jonmcewen avatar

Watchers

James Cloos avatar Abhishek Verma avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.