Skip to content

W32Time


The W32Time collector monitors the local Windows Time Service through Windows Performance Data Helper counters. It does not execute or parse w32tm output.

Configuration

Preconditions

  • Windows Server 2016 or later, Windows 10 Anniversary Update or later, or Windows 11
  • 64-bit DataKit for Windows (windows/amd64)
  • The Windows Time (W32Time) service is registered; no separate installation of w32tm or another program is required

When the W32Time service is not running, the collector still reports service_running=0. Other time synchronization fields are reported only when the service is running and the corresponding performance counters are available.

Collector Configuration

Go to the conf.d/samples directory under the DataKit installation directory, copy w32time.conf.sample and name it w32time.conf. The configuration is as follows:

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

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

After configuration, restart DataKit.

Metric

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

Feedback

Is this page helpful?