- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
",t};e.buildCustomizationMenuUi=t;function n(e){let t='
",t}function s(e){let n=e.filter.currentValue||e.filter.defaultValue,t='${e.filter.label}
`,e.filter.options.forEach(s=>{let o=s.id===n;t+=``}),t+="${e.filter.label}
`,t+=`Runtime metrics monitor your application’s memory usage, garbage collection, and parallelization. Datadog tracing libraries automatically collect these metrics for supported environments and send them to the Datadog Agent.
These metrics help you identify bottlenecks, troubleshoot performance issues, and optimize resource utilization. By viewing runtime metrics alongside traces and logs, you gain comprehensive visibility into your application’s health and performance.
Runtime metrics are available for several programming languages and runtimes, with varying levels of support and configuration options.
On .NET Framework, metrics are collected using performance counters. Users in non-interactive logon sessions (that includes IIS application pool accounts and some service accounts) must be added to the Performance Monitoring Users group to access counter data.
IIS application pools use special accounts that do not appear in the list of users. To add them to the Performance Monitoring Users group, look for IIS APPPOOL\<name of the pool>
. For instance, the user for the DefaultAppPool would be IIS APPPOOL\DefaultAppPool
.
This can be done either from the “Computer Management” UI, or from an administrator command prompt:
net localgroup "Performance Monitor Users" "IIS APPPOOL\DefaultAppPool" /add
To set up runtime metrics, you need to configure both the Datadog Agent and your application.
Enable DogStatsD for the Agent. By default, the Datadog Agent is configured to ingest metrics with UDP over port 8125
.
When running the Agent in containerized environments, additional configuration is required:
dogstatsd_non_local_traffic: true
in your main datadog.yaml
configuration file, or set the environment variable DD_DOGSTATSD_NON_LOCAL_TRAFFIC=true
.DD_SITE
in the Datadog Agent to
to ensure the Agent sends data to the correct Datadog location.Configure runtime metrics in your application using environment variables. Some languages also support configuring runtime metrics directly in code.
Use the following environment variables to configure runtime metrics in your application:
DD_RUNTIME_METRICS_ENABLED
true
for Java, false
for all other languagesDD_RUNTIME_METRICS_RUNTIME_ID_ENABLED
true
for Java, false
for Node.js, Ruby, and Python. Does not exist for .NET and Go; the runtime_id
is always reported.runtime_id
tag along with every metric. The runtime_id
represents the application’s process identifier and allows you to directly correlate runtime metrics with individual running applications.DD_AGENT_HOST
localhost
DD_DOGSTATSD_PORT
8125
In addition to environment variables, some languages support configuring runtime metrics directly in code.
You can only enable runtime metrics with environment variables.
However, you can extend the metrics collected by adding custom JMX metrics. For more information, see JMX Integration documentation.
You can enable runtime metrics with environment variables or in code:
from ddtrace.runtime import RuntimeMetrics
RuntimeMetrics.enable()
ddtrace-run
You can enable runtime metrics with environment variables or in code:
# config/initializers/datadog.rb
require 'datadog/statsd'
require 'datadog' # Use 'ddtrace' if you're using v1.x
Datadog.configure do |c|
c.runtime_metrics.enabled = true
# Optionally, you can configure the DogStatsD instance used for sending runtime metrics.
# DogStatsD is automatically configured with default settings if `dogstatsd-ruby` is available.
# You can configure with host and port of Datadog agent; defaults to 'localhost:8125'.
c.runtime_metrics.statsd = Datadog::Statsd.new
end
You can enable runtime metrics with environment variables or in code:
// Basic configuration
tracer.Start(tracer.WithRuntimeMetrics())
// With custom DogStatsD address
tracer.Start(
tracer.WithRuntimeMetrics(),
tracer.WithDogstatsdAddr("custom-host:8125")
)
The WithDogstatsdAddr
option allows you to specify a custom address for the DogStatsD server. Use the WithDogstatsdAddr
(or WithDogstatsdAddress
v1) option if your address differs from the default localhost:8125
. (Available for 1.18.0+)
You can enable runtime metrics with environment variables or in code:
const tracer = require('dd-trace').init({
// Other tracer options...
runtimeMetrics: true
})
You can only enable runtime metrics with environment variables.
After setup is complete, you can view runtime metrics in:
env
tag (case-sensitive) is set and matching across your environment.DD_DOGSTATSD_TAGS
is set on your Agent task, and that the configured env
tag matches the env
of the instrumented service.Each supported language collects a set of runtime metrics that provide insights into memory usage, garbage collection, CPU utilization, and other performance indicators.