コンテンツにスキップ

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

フィードバック

このページは役に立ちましたか?