Understand NTP sanity and causality violation
masterThe node_ntp_sanity metric provides an aggregate health score for the NTP daemon. It evaluates several factors:
- Stratum and Leap Flag: Ensures the clock is synchronized.
- Freshness: Ensures the last adjustment was recent.
- Root Distance: Must be less than the
collector.ntp.max-distancethreshold. - Causality Violation: Must be less than the
collector.ntp.local-offset-tolerancethreshold.
Causality Violation Calculation:
Causality violation is a lower bound estimate of clock error calculated using SNTP. It is defined as the positive portion of:
abs(node_ntp_offset) - node_ntp_rtt / 2