This documentation has an index for AI agents at /llms.txt. A Markdown version of this page is available at https://explorer.opentelemetry.io/java-agent/instrumentation/jmx-metrics.md.

JMX Metrics

OpenTelemetry Java agent instrumentation

Collects and reports metrics exposed through Java Management Extensions (JMX). It can be configured to extract JVM and application-level telemetry data from JMX MBeans such as memory usage, thread counts, and garbage collection statistics, and translate these measurements into OpenTelemetry metrics.

  • Name: jmx-metrics
  • Scope: io.opentelemetry.jmx-metrics

Configuration

OptionTypeDefaultDescription
otel.jmx.configlistList of paths to JMX metric definition YAML files.
otel.jmx.discovery.delayint60000Time in milliseconds between JMX MBean detection attempts.
otel.jmx.enabledbooleantrueEnables collection of JMX metrics.
otel.jmx.target.systemlistList of predefined JMX target systems to collect metrics for.

Data

  • JSON: /data/javaagent/instrumentations/jmx-metrics/jmx-metrics-d83defbb7555.json
  • Explore: /java-agent/instrumentation/jmx-metrics