Runtime Metrics

Runtime metrics are the numbers that Datadog SDKs collect from an application's runtime environment: memory usage, garbage collection, and how concurrent processing is behaving. They are collected by the same SDK as traces, but reach the Agent through a different receiving point.

Overview

They represent the state of the runtime environment outside your code, such as JVM heap usage and the number of garbage collections (GC). It is the concept to keep in mind when you want to isolate whether the cause of a slow request is the code's processing, or a memory shortage or pauses caused by GC. You also end up at this term when traces appear on the service page but only the runtime charts stay empty. Whether they are enabled by default differs by language, and apart from Java and .NET 6 or later you need to enable them yourself.

A health check of the runtime environment, shown next to traces

Runtime metrics are numbers that represent how an application uses memory, garbage collection, and concurrent processing, and in supported environments the Datadog SDK collects them automatically and sends them to the Agent. For Java, they get names matched to the language's runtime environment, such as jvm.heap_memory (as of October 2026; Source: Runtime Metrics). They are displayed on the details page of the instrumented service, in the Metrics tab of the flame graph, and on the default runtime dashboard. Their role is to let you check side by side, when you find a slow trace, whether the heap was approaching its limit or GC was increasing at the same moment.

From the same SDK as traces, to a different receiving point

The setting that enables them is DD_RUNTIME_METRICS_ENABLED, and only Java and .NET 6 or later (SDK v3.40.0 or later) have it enabled by default. The SDK sends the collected numbers to the destination given by DD_AGENT_HOST (default localhost) and DD_DOGSTATSD_PORT (default 8125). The receiving side is the Agent's DogStatsD, which by default receives on UDP port 8125 (as of October 2026; Source: Runtime Metrics).

  • The SDK inside the application collects the runtime environment's numbers
  • It sends them over UDP to the destination given by DD_AGENT_HOST and DD_DOGSTATSD_PORT
  • The Agent's DogStatsD receives them and sends them on to Datadog in batches
Source: Runtime Metrics (as of October 2026; how runtime metrics arrive)

Traces head to the receiving point of the Trace Agent, so the two paths diverge before the Agent. Even if traces are arriving, if the path to DogStatsD is blocked, only the runtime charts go empty. How the DogStatsD receiving point itself works is left to the explanation in DogStatsD.

How to check when the charts stay empty

The first thing to check is whether they are enabled for that language. Python, Ruby, Go, and Node.js are disabled by default, and for Ruby you also need to add the dogstatsd-ruby gem. Next, check on the Agent side whether DogStatsD is enabled. When running in containers, also confirm that dogstatsd_non_local_traffic, which accepts traffic sent from other containers, is enabled. This setting is enabled by default, and you set it back to true only if you disabled it earlier (as of October 2026; Source: Runtime Metrics). When the numbers are arriving but are not linked to the flame graph, check whether the env tag matches down to uppercase and lowercase. Separately, when the charts do not appear on the service page on Fargate, the condition for them to display is to set DD_DOGSTATSD_TAGS on the Agent's task and align its env with the service's value.

What differs by language is the default and the names

The names of the collected numbers differ by language: Java's begin with jvm. and Python's with runtime.python.. The others likewise follow runtime. with the name of the runtime environment, as in runtime.ruby., runtime.go., runtime.node., and runtime.dotnet.. Enabling DD_RUNTIME_METRICS_RUNTIME_ID_ENABLED adds a runtime_id tag representing the process to every number, so you can read them linked to individual processes. This tag is enabled by default in Java, disabled in Node.js, Ruby, and Python, and always attached in .NET and Go (as of October 2026; Source: Runtime Metrics). Applications instrumented with OpenTelemetry rather than the SDK follow the separate procedure in OpenTelemetry Runtime Metrics.

Match the destination values against the Agent's receiving point settings

When the runtime charts are empty, reviewing only the SDK, or only the Agent, may not get you to the cause. One way to proceed is to line up the values of DD_RUNTIME_METRICS_ENABLED, DD_AGENT_HOST, and DD_DOGSTATSD_PORT on the application side with the DogStatsD settings on the Agent side and compare them. How services appear is summarized in Service (APM). Once you have compared them, open the service's details page and judge that the numbers have arrived by whether lines have started to be drawn in the runtime charts.

Share