The Docker stats receiver needs access to the Docker socket. By default, the receiver looks for the Docker socket at unix:///var/run/docker.sock. If this is not the Docker socket path, specify the path in the endpoint configuration line.
Add the following lines to your Collector configuration:
The Docker Stats receiver generates container metrics for the OpenTelemetry Collector. The Datadog Exporter translates container metrics to their Datadog counterparts for use in the following views:
Note: To correlate trace and container metrics, configure Universal Service Monitoring attributes for each service, and set the following resource attributes for each service:
The following table shows what Datadog container metric names are associated with corresponding OpenTelemetry container metric names
OTEL
DATADOG
DESCRIPTION
FILTER
container.blockio.io_serviced_recursive
container.io.read.operations
Number of IOs (bio) issued to the disk by the group and descendant groups (Only available with cgroups v1).
operation: read
container.blockio.io_serviced_recursive
container.io.write.operations
Number of IOs (bio) issued to the disk by the group and descendant groups (Only available with cgroups v1).
operation: write
container.cpu.throttling_data.throttled_periods
container.cpu.throttled.periods
Number of periods when the container hits its throttling limit.
container.cpu.throttling_data.throttled_time
container.cpu.throttled
Aggregate time the container was throttled.
container.cpu.usage.system
container.cpu.system
System CPU usage, as reported by docker.
container.cpu.usage.total
container.cpu.usage
Total CPU time consumed.
container.cpu.usage.usermode
container.cpu.user
Time spent by tasks of the cgroup in user mode (Linux). Time spent by all container processes in user mode (Windows).
container.memory.active_anon
container.memory.kernel
The amount of anonymous memory that has been identified as active by the kernel.
container.memory.hierarchical_memory_limit
container.memory.limit
The maximum amount of physical memory that can be used by the processes of this control group (Only available with cgroups v1).
container.memory.rss
kubernetes.memory.rss
The amount of memory that doesn’t correspond to anything on disk: stacks, heaps, and anonymous memory maps (Only available with cgroups v1).
container.memory.total_cache
container.memory.cache
Total amount of memory used by the processes of this cgroup (and descendants) that can be associated with a block on a block device. Also accounts for memory used by tmpfs (Only available with cgroups v1).
container.memory.usage.limit
container.memory.soft_limit
Memory limit of the container.
container.memory.usage.total
container.memory.usage
Memory usage of the container. This excludes the cache.