JMXFetch¶
JMXFetch is the component of the Agent which is responsible for collecting metrics from Java applications.
For more details on JMXFetch or developer documentation, please visit the project documentation on the JMXFetch GitHub repo.
Running checks requiring JMXFetch¶
If your goal is to run a JMX-based check:
- Download the
-jar-with-dependencies.jar
build of the latest version of JMXFetch frommaven
, or create a custom build. - Copy the jar file and rename it to
$GOPATH/src/github.com/DataDog/datadog-agent/dev/dist/jmx/jmxfetch.jar
. - Run
dda inv agent.run
. - Validate that the JMXFetch section appears in
agent status
.
If you have a JMX-based integration configured to run, it automatically runs in your local JMXFetch instance.