datadog.yaml에서 에이전트 cri_socket_path를 구성해 기존 CRI를 쿼리하도록 합니다(또 기본 시간 제한을 구성할 수 있음). CRI(예: containerd)에서 디스크 사용량 메트릭을 보고한다면 collect_disk와 같은 점검 인스턴스 설정을 cri.d/conf.yaml에서 구성하세요.
참고: 컨테이너에서 에이전트를 사용하는 경우 환경 변수 DD_CRI_SOCKET_PATH를 설정하면 기본 구성으로 CRI 점검을 자동으로 사용할 수 있습니다.
컨테이너에서 설치
컨테이너에서 에이전트를 사용하는 경우 CRI 소켓에 DD_CRI_SOCKET_PATH 환경 변수를 설정하면 CRI 통합이 기본 구성으로 자동 활성화됩니다.
예를 들어 쿠버네티스에 통합을 설치하려면 daemonset을 편집해 호스트 노드에서 CRI 소켓을 에이전트 컨테이너로 연결하고 환경 변수를 DD_CRI_SOCKET_PATH를 daemonset mountPath로 설정합니다.
CRI collect metrics about the resource usage of your containers running through the CRI.
CPU and memory metrics are collected out of the box and you can additionally collect some disk metrics if they are supported by your CRI (CRI-O doesn’t support them).
cri.cpu.usage (gauge)
Cumulative CPU usage (sum across all cores) since object creation Shown as nanocore
cri.disk.inodes (gauge)
Represents the inodes used by the images Shown as inode
cri.disk.used (gauge)
Represents the bytes used for images on the filesystem Shown as byte
cri.mem.rss (gauge)
The amount of working set memory in bytes Shown as byte
cri.uptime (gauge)
Time since the container was started Shown as second