For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/integrations/otel-java-runtime-metrics.md. A documentation index is available at /llms.txt.

Java Runtime Metrics (OpenTelemetry)

To find out if this integration is available in your organization, see your Datadog Integrations page or ask your organization administrator.

To initiate an exception request to enable this integration for your organization, email [email protected].

Overview

The Java OpenTelemetry integration allows you to collect runtime metrics from your Java applications instrumented with OpenTelemetry.

Setup

See the dedicated documentation for Java Runtime Metrics via OpenTelemetry.

The following metrics are emitted as cumulative counters by the OpenTelemetry Java SDK / agent. To convert them to per-second rates in Datadog, apply the Delta To Rate processor in your OpenTelemetry Collector pipeline:

  • jvm.cpu.time
  • jvm.class.loaded
  • jvm.class.unloaded

Data Collected

Metrics

jvm.memory.used
(gauge)
Measure of memory used
Shown as byte
jvm.memory.committed
(gauge)
Measure of memory committed
Shown as byte
jvm.memory.limit
(gauge)
Measure of max obtainable memory
Shown as byte
jvm.memory.init
(gauge)
Measure of initial memory requested
Shown as byte
jvm.memory.used_after_last_gc
(gauge)
Measure of memory used after the most recent garbage collection event on this pool
Shown as byte
jvm.gc.duration
(gauge)
Duration of JVM garbage collection actions
Shown as second
jvm.thread.count
(gauge)
Number of executing platform threads
Shown as thread
jvm.class.loaded
(count)
Number of classes loaded since JVM start
jvm.class.unloaded
(count)
Number of classes unloaded since JVM start
jvm.class.count
(gauge)
Number of classes currently loaded
jvm.cpu.time
(count)
CPU time used by the process
Shown as second
jvm.cpu.count
(gauge)
Number of processors available to the JVM
Shown as cpu
jvm.cpu.recent_utilization
(gauge)
Recent CPU utilization for the process
Shown as fraction
jvm.system.cpu.utilization
(gauge)
Recent CPU utilization for the whole system
Shown as fraction
jvm.system.cpu.load_1m
(gauge)
Average CPU load of the whole system for the last minute
Shown as fraction
jvm.buffer.memory.used
(gauge)
Measure of memory used by buffers
Shown as byte
jvm.buffer.memory.limit
(gauge)
Measure of total memory capacity of buffers
Shown as byte
jvm.buffer.count
(gauge)
Number of buffers in the pool
Shown as buffer
jvm.file_descriptor.count
(gauge)
Number of open file descriptors
Shown as file
jvm.file_descriptor.limit
(gauge)
Maximum number of open file descriptors allowed
Shown as file

Support

Need help? Contact Datadog support.