Yes i had tried it previosly but we do have our won NTP servers with which 
it did not showed correct information like , the output will be :

# HELP node_ntp_leap NTPD leap second indicator, 2 bits.
# TYPE node_ntp_leap gauge
node_ntp_leap 0
# HELP node_ntp_offset_seconds ClockOffset between NTP and local clock.
# TYPE node_ntp_offset_seconds gauge
node_ntp_offset_seconds -5.784e-06
# HELP node_ntp_reference_timestamp_seconds NTPD ReferenceTime, UNIX 
timestamp.
# TYPE node_ntp_reference_timestamp_seconds gauge
node_ntp_reference_timestamp_seconds 1.6032005254001284e+09
# HELP node_ntp_root_delay_seconds NTPD RootDelay.
# TYPE node_ntp_root_delay_seconds gauge
node_ntp_root_delay_seconds 0.097167968
# HELP node_ntp_root_dispersion_seconds NTPD RootDispersion.
# TYPE node_ntp_root_dispersion_seconds gauge
node_ntp_root_dispersion_seconds 0.139892578
# HELP node_ntp_rtt_seconds RTT to NTPD.
# TYPE node_ntp_rtt_seconds gauge
node_ntp_rtt_seconds 5.0566e-05
# HELP node_ntp_sanity NTPD sanity according to RFC5905 heuristics and 
configured limits.
# TYPE node_ntp_sanity gauge
node_ntp_sanity 1
# HELP node_ntp_stratum NTPD stratum.
# TYPE node_ntp_stratum gauge
node_ntp_stratum 5
node_scrape_collector_duration_seconds{collector="ntp"} 0.000197162
node_scrape_collector_success{collector="ntp"} 1

but the stratum value here is 5 , but output of ntpq -p is 


here stratum is 4 , I  dont think the ntp metrics are correct here as 
respect to our ntp .
I need guidance here .

On Tuesday, October 20, 2020 at 6:22:08 PM UTC+5:30 b.ca...@pobox.com wrote:

> If you're checking the ntp service on the host where node_exporter is 
> running, then remove '--collector.ntp.server="10.0.0.0" 
> --collector.ntp.server-is-local'
> All you need is --collector.ntp
>
> # curl -sS localhost:9100/metrics | grep 'ntp_'
> # HELP node_ntp_leap NTPD leap second indicator, 2 bits.
> # TYPE node_ntp_leap gauge
> node_ntp_leap 0
> # HELP node_ntp_offset_seconds ClockOffset between NTP and local clock.
> # TYPE node_ntp_offset_seconds gauge
> node_ntp_offset_seconds -0.000133765
> # HELP node_ntp_reference_timestamp_seconds NTPD ReferenceTime, UNIX 
> timestamp.
> # TYPE node_ntp_reference_timestamp_seconds gauge
> node_ntp_reference_timestamp_seconds 1.6031982374973688e+09
> # HELP node_ntp_root_delay_seconds NTPD RootDelay.
> # TYPE node_ntp_root_delay_seconds gauge
> node_ntp_root_delay_seconds 0.005783081
> # HELP node_ntp_root_dispersion_seconds NTPD RootDispersion.
> # TYPE node_ntp_root_dispersion_seconds gauge
> node_ntp_root_dispersion_seconds 0.002456665
> # HELP node_ntp_rtt_seconds RTT to NTPD.
> # TYPE node_ntp_rtt_seconds gauge
> node_ntp_rtt_seconds 0.000417611
> # HELP node_ntp_sanity NTPD sanity according to RFC5905 heuristics and 
> configured limits.
> # TYPE node_ntp_sanity gauge
> node_ntp_sanity 1
> # HELP node_ntp_stratum NTPD stratum.
> # TYPE node_ntp_stratum gauge
> node_ntp_stratum 2 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/55e66e6a-0a71-46e5-9185-d896c7adb09dn%40googlegroups.com.

Reply via email to