Skip to content

ntp collector's data is not consistent as expected #2602

@gnnx0425

Description

@gnnx0425

What did you expect to see?

Node exporter is running as a systemd service on Linux VM. --collect.ntp is enabled to collector NTP related metrics. I expect to see the value of the metrics is consistent with what I obtained from system command.

What did you see instead?

MS Name/IP address         Stratum Poll Reach LastRx Last sample
===============================================================================
^* 117-host>     2  10   377   521   -798us[ -633us] +/-   27ms

chronyc sourcestats
Name/IP Address            NP  NR  Span  Frequency  Freq Skew  Offset  Std Dev
==============================================================================
117-host.>                      29  19  297m     +0.009      0.033  **-1201us**   282us
# HELP node_ntp_offset_seconds ClockOffset between NTP and local clock.
# TYPE node_ntp_offset_seconds gauge
node_ntp_offset_seconds **-5.257e-06**

The offset value from "chronyc sourcestats" is not consistent from node exporter node_ntp_offset_seconds metrics value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions