Git Product home page Git Product logo

Comments (4)

dhoard avatar dhoard commented on July 17, 2024

@ecerulm we have a subtle statement...

"It can be also run as a standalone HTTP server and scrape remote JMX targets, but this has various disadvantages, such as being harder to configure and being unable to expose process metrics (e.g., memory and CPU usage)."

What would you propose?


The standalone can export JVM metrics, but they will be reported more in line with the actual MBean ObjectNames...

Example:

# HELP java_lang_threading_daemonthreadcount java.lang:name=null,type=Threading,attribute=DaemonThreadCount
# TYPE java_lang_threading_daemonthreadcount untyped
java_lang_threading_daemonthreadcount 58.0

from jmx_exporter.

ecerulm avatar ecerulm commented on July 17, 2024

What would you propose?

I wrote #965 with a specific proposal. My issues is that I tried searching for jvm_ in the docs and I could find any reference.

The standalone can export JVM metrics, but they will be reported more in line with the actual MBean ObjectNames...

And that is perfectly fine, it just that jvm_threads_daemon, jvm_memory_bytes_used mentioned in some AWS docs and then I couldn't find any reference to those. It took me a bit to realize that javagent exposed jvm_ but httpserver didn't. Now I know, but hopefully #965 change will allow other people to realize quicker that I did 😃

In my case I can't use the javagent because the application I'm trying to monitor (Tableau) does not allow me to add the agent. It comes with it's own tool to start many java services and it does not allow to customize any java options (not supported either). But "regular" JMX is allowed, hence jmxexporter http server is a good fit for me.

from jmx_exporter.

ecerulm avatar ecerulm commented on July 17, 2024

The standalone can export JVM metrics, but they will be reported more in line with the actual MBean ObjectNames...

Many (most?) of the JVM metrics are directly accessible from MBeans attributes, yes.
Some other jvm metrics like jvm_threads_deadlocked (jmxexporter-javaagent) are simply not accessible via MBean attributes and therefore you can't get them with the jmxexporter-httpserver. In particular jvm_threads_deadlocked is implemented in client_java's JvmThreadsMetrics and it uses a MBean operation (not an attribute). JvmThreadsMetrics will call ThreadMXBean.findMonitorDeadlockedThreads on the MBean.

The above is just for reference in case somebody lands here looking for jvm_threads_deadlocked in jmxexporter-httpserver.

FYI, I added some information about jvm_* metrics on this stackoverflow answer.

from jmx_exporter.

dhoard avatar dhoard commented on July 17, 2024

Added documentation to 1.0.1 README.md

from jmx_exporter.

Related Issues (20)

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.