Git Product home page Git Product logo

jmx-exporter-charm's People

Watchers

 avatar  avatar  avatar

Forkers

brotich

jmx-exporter-charm's Issues

Tag metrics with application and unit name

It would be nice to add the unit name to metrics, especially when they apply to several different applications. Currently only the IP:port is shown. See example below.

Would be much nicer to tag metrics with the relation peer's unit and application name, so we can constrain queries easily when exploring Prometheus. So if jmx-exporter is related to kafka, the tags might be application=kafka, unit=kafka/0.

✔
java_lang_Memory_HeapMemoryUsage_used{group="promoagents-juju",instance="10.15.118.9:4081",job="jmx-exporter"}
✔
java_lang_Memory_HeapMemoryUsage_used{group="promoagents-juju",instance="10.15.118.8:4081",job="jmx-exporter"}
✔
java_lang_Memory_HeapMemoryUsage_used{group="promoagents-juju",instance="10.15.118.7:4081",job="jmx-exporter"}
✔
java_lang_Memory_HeapMemoryUsage_used{group="promoagents-juju",instance="10.15.118.16:4081",job="jmx-exporter"}
✔
java_lang_Memory_HeapMemoryUsage_used{group="promoagents-juju",instance="10.15.118.15:4081",job="jmx-exporter"}
✔
java_lang_Memory_HeapMemoryUsage_used{group="promoagents-juju",instance="10.15.118.14:4081",job="jmx-exporter"}
✔
java_lang_Memory_HeapMemoryUsage_used{group="promoagents-juju",instance="10.15.118.13:4081",job="jmx-exporter"}
✔
java_lang_Memory_HeapMemoryUsage_used{group="promoagents-juju",instance="10.15.118.12:4081",job="jmx-exporter"}
✔
java_lang_Memory_HeapMemoryUsage_used{group="promoagents-juju",instance="10.15.118.10:4081",job="jmx-exporter"}

Filter out org_eclipse_jetty_.* metrics

jmx exporter is creating jetty metrics, like this:

org_eclipse_jetty_util_thread_strategy_HTTP_1_1_4c41a177_stopTimeout
org_eclipse_jetty_util_thread_strategy_HTTP_1_1_4491eaeb_stopTimeout
...

These should be filtered out of the default jmx config because they don't seem useful and only add noise to the Prometheus UI.

jmx_exporter should be built into a snap

Our other Java-based projects (zookeeper, kafka) are built as snaps to isolate build as well as runtime dependencies. The same should be done here. snapcraft will then take care of installing the necessary build dependencies in a repeatable way. Otherwise the build will depend on whatever version of java and mvn happens to be installed on the system -- this will make for unpredictable builds.

The submodule could probably be replaced with a snapcraft source: entry that points at the upstream repo.

There is also a mvn plugin for snapcraft that you might find helpful.

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.