@@ -22,54 +22,81 @@ Some of the following metrics are applicable for PTP grandmaster clocks (T-GM) o
22
22
23
23
|`openshift_ptp_clock_class`
24
24
|Returns the PTP clock class for the interface.
25
- Possible values for PTP clock class are `6` (`LOCKED` ), `7` (`HOLDOVER` within specification ), `140` ( ` HOLDOVER` outside specification ), and `248` ( `FREERUN ` ).
25
+ Possible values for PTP clock class are 6 (`LOCKED` ), 7 (`PRC UNLOCKED IN-SPEC` ), 52 ( `PRC UNLOCKED OUT-OF-SPEC` ), 187 ( `PRC UNLOCKED OUT-OF-SPEC` ), 135 ( `T-BC HOLDOVER IN-SPEC` ), 165 ( `T-BC HOLDOVER OUT-OF-SPEC` ), 248 ( `DEFAULT` ), or 255 ( `SLAVE ONLY CLOCK ` ).
26
26
Applicable to T-GM clocks only.
27
- |`openshift_ptp_clock_class {node="compute-1.example.com", process="ptp4l"} 6`
27
+ |`{node="compute-1.example.com",process="ptp4l"} 6`
28
28
29
29
|`openshift_ptp_clock_state`
30
30
|Returns the current PTP clock state for the interface.
31
31
Possible values for PTP clock state are `FREERUN` , `LOCKED` , or `HOLDOVER` .
32
- |`openshift_ptp_clock_state {iface="CLOCK_REALTIME", node="compute-1.example.com", process="phc2sys"} 1`
32
+ |`{iface="CLOCK_REALTIME", node="compute-1.example.com", process="phc2sys"} 1`
33
33
34
34
|`openshift_ptp_delay_ns`
35
35
|Returns the delay in nanoseconds between the primary clock sending the timing packet and the secondary clock receiving the timing packet.
36
- |`openshift_ptp_delay_ns {from="master", iface="ens2fx", node="compute-1.example.com", process="ts2phc"} 0`
36
+ |`{from="master", iface="ens2fx", node="compute-1.example.com", process="ts2phc"} 0`
37
37
38
38
|`openshift_ptp_frequency_adjustment_ns`
39
39
|Returns the frequency adjustment in nanoseconds between 2 PTP clocks.
40
40
For example, between the upstream clock and the NIC, between the system clock and the NIC, or between the PTP hardware clock (`phc` ) and the NIC.
41
41
Applicable to T-GM clocks only.
42
- |`openshift_ptp_frequency_adjustment_ns {from="phc", iface="CLOCK_REALTIME", node="compute-1.example.com", process="phc2sys"} -6768`
42
+ |`{from="phc", iface="CLOCK_REALTIME", node="compute-1.example.com", process="phc2sys"} -6768`
43
+
44
+ |`openshift_ptp_frequency_status`
45
+ |Returns the current status of the digital phase-locked loop (DPLL) frequency for the NIC.
46
+ Possible values are -1 (`UNKNOWN` ), 0 (`INVALID` ), 1 (`FREERUN` ), 2 (`LOCKED` ), 3 (`LOCKED_HO_ACQ` ), or 4 (`HOLDOVER` ).
47
+ |`{from="dpll",iface="ens2fx",node="compute-1.example.com",process="dpll"} 3`
48
+
49
+ |`openshift_ptp_phase_status`
50
+ |Returns the status of the DPLL phase for the NIC.
51
+ Possible values are -1 (`UNKNOWN` ), 0 (`INVALID` ), 1 (`FREERUN` ), 2 (`LOCKED` ), 3 (`LOCKED_HO_ACQ` ), or 4 (`HOLDOVER` ).
52
+ |`{from="dpll",iface="ens2fx",node="compute-1.example.com",process="dpll"} 3`
43
53
44
54
|`openshift_ptp_interface_role`
45
- |Describes the configured PTP clock role for the interface.
55
+ |Returns the configured PTP clock role for the interface.
46
56
Possible values are 0 (`PASSIVE` ), 1 (`SLAVE` ), 2 (`MASTER` ), 3 (`FAULTY` ), 4 (`UNKNOWN` ), or 5 (`LISTENING` ).
47
-
48
- |`openshift_ptp_interface_role {iface="ens2f0", node="compute-1.example.com", process="ptp4l"} 2`
57
+ |`{iface="ens2f0", node="compute-1.example.com", process="ptp4l"} 2`
49
58
50
59
|`openshift_ptp_max_offset_ns`
51
60
|Returns the maximum offset in nanoseconds between 2 clocks or interfaces.
52
61
For example, between the upstream GNSS clock and the NIC (`ts2phc` ), or between the PTP hardware clock (`phc` ) and the system clock (`phc2sys` ).
53
62
Applicable to T-GM clocks only.
54
- |`openshift_ptp_max_offset_ns {from="master", iface="ens2fx", node="compute-1.example.com", process="ts2phc"} 1.038099569e+09`
63
+ |`{from="master", iface="ens2fx", node="compute-1.example.com", process="ts2phc"} 1.038099569e+09`
55
64
56
65
|`openshift_ptp_offset_ns`
57
66
|Returns the offset in nanoseconds between the DPLL clock or the GNSS clock source and the NIC hardware clock.
58
67
Applicable to T-GM clocks only.
59
- |`openshift_ptp_offset_ns {from="phc", iface="CLOCK_REALTIME", node="compute-1.example.com", process="phc2sys"} -9`
68
+ |`{from="phc", iface="CLOCK_REALTIME", node="compute-1.example.com", process="phc2sys"} -9`
60
69
61
70
|`openshift_ptp_process_restart_count`
62
71
|Returns a count of the number of times the `ptp4l` process was restarted.
63
- |`openshift_ptp_process_restart_count {config="ptp4l.0.config", node="compute-1.example.com",process="phc2sys"} 1`
72
+ |`{config="ptp4l.0.config", node="compute-1.example.com",process="phc2sys"} 1`
64
73
65
74
|`openshift_ptp_process_status`
66
75
|Returns a status code that shows whether the PTP process is running or not.
67
- |`openshift_ptp_process_status {config="ptp4l.0.config", node="compute-1.example.com",process="phc2sys"} 1`
76
+ |`{config="ptp4l.0.config", node="compute-1.example.com",process="phc2sys"} 1`
68
77
69
78
|`openshift_ptp_threshold`
70
79
a|Returns values for `HoldOverTimeout` , `MaxOffsetThreshold` , and `MinOffsetThreshold` .
71
80
72
81
* `holdOverTimeout` is the time value in seconds before the PTP clock event state changes to `FREERUN` when the PTP master clock is disconnected.
73
82
* `maxOffsetThreshold` and `minOffsetThreshold` are offset values in nanoseconds that compare against the values for `CLOCK_REALTIME` (`phc2sys` ) or master offset (`ptp4l` ) values that you configure in the `PtpConfig` CR for the NIC.
74
- |`openshift_ptp_threshold {node="compute-1.example.com", profile="grandmaster", threshold="HoldOverTimeout"} 5`
83
+ |`{node="compute-1.example.com", profile="grandmaster", threshold="HoldOverTimeout"} 5`
84
+
85
+ |`openshift_ptp_pps_status`
86
+ |Returns the current status of the NIC 1PPS connection.
87
+ You use the 1PPS connection to synchronize timing between connected NICs.
88
+ Possible values are 0 (`UNAVAILABLE` ) and 1 (`AVAILABLE` ).
89
+ |`{from="dpll",iface="ens2fx",node="compute-1.example.com",process="dpll"} 1`
90
+
91
+ |`openshift_ptp_nmea_status`
92
+ |Returns the current status of the NMEA connection.
93
+ NMEA is the protocol that is used for 1PPS NIC connections.
94
+ Possible values are 0 (`UNAVAILABLE` ) and 1 (`AVAILABLE` ).
95
+ |`{iface="ens2fx",node="compute-1.example.com",process="ts2phc"} 1`
96
+
97
+ |`openshift_ptp_gnss_status`
98
+ |Returns the current status of the global navigation satellite system (GNSS) connection.
99
+ GNSS provides satellite-based positioning, navigation, and timing services globally.
100
+ Possible values are 0 (`NOFIX` ), 1 (`DEAD RECKONING ONLY` ), 2 (`2D-FIX` ), 3 (`3D-FIX` ), 4 (`GPS+DEAD RECKONING FIX` ), 5, (`TIME ONLY FIX` ).
101
+ |`{from="gnss",iface="ens2fx",node="compute-1.example.com",process="gnss"} 3`
75
102
|====
0 commit comments