Fractal Techware

Alert runbooks /

NodeClockSkewDetected

This host’s clock is noticeably off from its reference time and the gap is holding steady or getting worse.

   
Severity warning
Source node_exporter 1.x, timex collector
Key metric node_timex_offset_seconds

What it means

node_timex_offset_seconds is the kernel’s current estimate of how far the local clock is from the time source the NTP daemon is tracking. A healthy host sits within a few milliseconds. The alert fires when the offset stays beyond tens of milliseconds for several minutes and is moving away from zero rather than back towards it. A skew that is shrinking means correction is working, so it is deliberately ignored.

Skew matters for anything that compares timestamps across machines: distributed locks and leases, database replication, certificate and token validity windows, and log correlation during incidents. Prometheus itself will also store samples from this host with slightly wrong timing.

Common causes

First checks

  1. Compare hosts to spot outliers:
    sort_desc(abs(node_timex_offset_seconds))
    
  2. Cross-check against the Prometheus server’s own clock (rough, includes scrape delay):
    abs(time() - node_time_seconds) > 1
    
  3. On the host, see the offset, frequency error and the chosen source:
    chronyc tracking
    chronyc sourcestats
    
  4. Check which clocksource the kernel uses (look for unexpected jiffies or warnings about unstable TSC):
    cat /sys/devices/system/clocksource/clocksource0/current_clocksource
    dmesg | grep -i clocksource
    
  5. Confirm there are at least three usable upstream servers in /etc/chrony.conf or /etc/chrony/chrony.conf.

Fixing it

Restore healthy sources first, then correct the offset. With chrony, chronyc makestep steps the clock immediately; set makestep in the config so large offsets are stepped at startup. Be careful stepping time on database or consensus nodes: drain or fence them first if the jump is large. For VMs, install the guest agent or use the hypervisor’s PTP/NTP source.