Looking through git history (git log -p), it was renamed to "node_ntp_offset_seconds":
# HELP node_ntp_offset_seconds ClockOffset between NTP and local clock.
# TYPE node_ntp_offset_seconds gauge
node_ntp_offset_seconds -0.015156364
The change was made in in
c169b4b1c (Sep 19 2017) when the ntp collector was updated with more metrics.
The old ntp_drift was calculated here:
- driftSeconds := resp.ClockOffset.Seconds()
- log.Debugf("Set ntp_drift_seconds: %f", driftSeconds)
- ch <- c.drift.mustNewConstMetric(driftSeconds)
and the corresponding code in current node_exporter is:
offset: typedDesc{prometheus.NewDesc(
prometheus.BuildFQName(namespace, ntpSubsystem, "offset_seconds"),
"ClockOffset between NTP and local clock.",
nil, nil,
), prometheus.GaugeValue},
...
ch <- c.offset.mustNewConstMetric(resp.ClockOffset.Seconds())
There is documentation about the ntp and timex metrics here:
Maybe these answer your other questions - or you can look at the source to see where each metric is collected from.