콘텐츠로 이동

W32Time


W32Time 수집기는 Windows Performance Data Helper 카운터로 로컬 Windows Time Service를 모니터링하며 w32tm을 실행하거나 출력을 파싱하지 않습니다.

구성

사전 요구 사항

  • Windows Server 2016 이상, Windows 10 Anniversary Update 이상 또는 Windows 11
  • Windows 64비트 DataKit(windows/amd64)
  • 시스템에 Windows Time(W32Time) 서비스가 등록되어 있어야 하며 w32tm 등 추가 프로그램 설치는 필요 없음

W32Time 서비스가 중지되어도 수집기는 service_running=0을 보고합니다. 다른 시간 동기화 메트릭은 서비스가 실행 중이고 해당 카운터를 사용할 수 있을 때만 보고합니다.

수집기 구성

DataKit 설치 디렉터리의 conf.d/samples에서 w32time.conf.sample을 복사하여 w32time.conf로 이름을 바꿉니다. 구성:

[[inputs.w32time]]
  ## Collect interval, default is 60 seconds.
  interval = "60s"

[inputs.w32time.tags]
  # some_tag = "some_value"
  # more_tag = "some_other_value"

구성 후 DataKit을 다시 시작합니다.

메트릭

w32time

Tags & Fields Description
host
(tag)
Host name.
computed_time_offset Absolute offset between the system clock and the time source selected by W32Time, in seconds.
Type: float | (gauge)
Unit: time,s
ntp_client_source_count Number of active NTP time source addresses responding to the Windows NTP client.
Type: int | (gauge)
Unit: count
ntp_roundtrip_delay Most recent NTP client round-trip delay reported by W32Time, in seconds.
Type: float | (gauge)
Unit: time,s
service_running Whether the Windows Time Service is running. A value of 1 means running and 0 means stopped.
Type: int | (gauge)
Unit: N/A

문서 평가

이 페이지가 도움이 되었나요?