Disk

Supported OS Linux Mac OS Windows

Integration version5.3.0

개요

디스크 사용량 및 IO와 관련된 메트릭을 수집합니다.

설정

설치

디스크 점검은 Datadog 에이전트 패키지에 포함되어 있으므로 서버에 추가 설치할 필요가 없습니다.

설정

본 디스크 점검은 기본값으로 설정되어 있으며 에이전트는 모든 로컬 파티션에서 메트릭을 수집합니다. 이 점검을 사용자 지정 옵션 설정하려면 에이전트 설정 디렉토리 루트의 conf.d/ 폴더의 disk.d/conf.yaml 파일을 수정하세요. 사용 가능한 모든 설정 옵션을 보려면 disk.d/conf.yaml 샘플을 참조하세요.

윈도우즈(Windows) 호스트용 참고 사항

다음은 디스크 점검을 사용 가능한 세 가지 시나리오입니다.

  1. 물리적 드라이브 모니터링

디스크 점검은 디스크 문자(예: C:, D:\ 등)로 표기하는 물리적 드라이브를 모니터링하는 기능을 기본 지원하며, 특별한 고려 사항 없이도 사용하실 수 있습니다.

  1. 중첩된 마운트 포인트 모니터링

파일 시스템 내에 마운트된 폴더를 모니터링하려면 관리자 권한이 필요합니다. 윈도우즈(Windows) 기본 함수 FindFirstVolumeMountPoint 호출에 관리자 권한이 필요하기 때문입니다. 에이전트에 관리자 권한을 부여하지 않고 메트릭을 수집하려면 PDH 점검를 활용하여 해당 성능 카운터(perf counter)에서 마운트 포인트 메트릭을 수집합니다.

  1. 파일 공유 모니터링

윈도우즈(Windows)에서 파일 공유용 마운트 포인트 메트릭을 수집하는 작업은 설정에서 create_mounts 옵션을 사용해야만 지원됩니다. 윈도우즈(Windows)에서 마운트된 각 폴더는 해당 공유를 마운트한 사용자만 확인할 수 있습니다. 따라서 create_mounts 옵션으로 에이전트가 마운트 포인트를 생성하여 해당 에이전트 사용자의 컨텍스트를 모니터링할 수 있습니다.

검증

에이전트의 status 상태 하위 명령을 실행하고 점검 섹션에서 disk를 찾습니다.

수집한 데이터

메트릭

system.disk.free
(gauge)
The amount of disk space that is free.
Shown as byte
system.disk.in_use
(gauge)
The amount of disk space in use as a percent of the total.
Shown as fraction
system.disk.read_time
(count)
The time in ms spent reading per device
Shown as millisecond
system.disk.read_time_pct
(rate)
Percent of time spent reading from disk.
Shown as percent
system.disk.total
(gauge)
The total amount of disk space.
Shown as byte
system.disk.used
(gauge)
The amount of disk space in use.
Shown as byte
system.disk.utilized
(gauge)
The amount of disk space in use as a percentage of the total.
Shown as percent
system.disk.write_time
(count)
The time in ms spent writing per device.
Shown as millisecond
system.disk.write_time_pct
(rate)
Percent of time spent writing to disk.
Shown as percent
system.fs.inodes.free
(gauge)
The number of free inodes.
Shown as inode
system.fs.inodes.in_use
(gauge)
The number of inodes in use as a percent of the total.
Shown as fraction
system.fs.inodes.total
(gauge)
The total number of inodes.
Shown as inode
system.fs.inodes.used
(gauge)
The number of inodes in use.
Shown as inode
system.fs.inodes.utilized
(gauge)
The number of inodes in use as a percentage of the total.
Shown as percent

이벤트

디스크 점검은 이벤트를 포함하지 않습니다.

서비스 점검

disk.read_write

Returns CRITICAL if filesystem is in read-only mode.

Note: This service check is not enabled by default. To enable the service check, set service_check_rw to true in the disk check’s conf.yaml file.


Statuses: ok, critical, unknown

트러블슈팅

도움이 필요하신가요? Datadog 지원팀에 문의하세요.