8
8
9
9
The following table describes the PTP fast events metrics that are available from cluster nodes where the `linuxptp-daemon` service is running.
10
10
11
- [NOTE]
12
- ====
13
- Some of the following metrics are applicable for PTP grandmaster clocks (T-GM) only.
14
- ====
15
-
16
11
.PTP fast event metrics
17
12
[cols="1,4,3", options="header"]
18
13
|====
@@ -23,7 +18,6 @@ Some of the following metrics are applicable for PTP grandmaster clocks (T-GM) o
23
18
|`openshift_ptp_clock_class`
24
19
|Returns the PTP clock class for the interface.
25
20
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
- Applicable to T-GM clocks only.
27
21
|`{node="compute-1.example.com",process="ptp4l"} 6`
28
22
29
23
|`openshift_ptp_clock_state`
@@ -35,22 +29,17 @@ Possible values for PTP clock state are `FREERUN`, `LOCKED`, or `HOLDOVER`.
35
29
|Returns the delay in nanoseconds between the primary clock sending the timing packet and the secondary clock receiving the timing packet.
36
30
|`{from="master", iface="ens2fx", node="compute-1.example.com", process="ts2phc"} 0`
37
31
32
+ |`openshift_ptp_ha_profile_status`
33
+ |Returns the current status of the highly available system clock when there are multiple time sources on different NICs.
34
+ Possible values are 0 (`INACTIVE` ) and 1 (`ACTIVE` ).
35
+ |`{node="node1",process="phc2sys",profile="profile1"} 1`
36
+ `{node="node1",process="phc2sys",profile="profile2"} 0`
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
- Applicable to T-GM clocks only.
42
41
|`{from="phc", iface="CLOCK_REALTIME", node="compute-1.example.com", process="phc2sys"} -6768`
43
42
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`
53
-
54
43
|`openshift_ptp_interface_role`
55
44
|Returns the configured PTP clock role for the interface.
56
45
Possible values are 0 (`PASSIVE` ), 1 (`SLAVE` ), 2 (`MASTER` ), 3 (`FAULTY` ), 4 (`UNKNOWN` ), or 5 (`LISTENING` ).
@@ -59,20 +48,18 @@ Possible values are 0 (`PASSIVE`), 1 (`SLAVE`), 2 (`MASTER`), 3 (`FAULTY`), 4 (`
59
48
|`openshift_ptp_max_offset_ns`
60
49
|Returns the maximum offset in nanoseconds between 2 clocks or interfaces.
61
50
For example, between the upstream GNSS clock and the NIC (`ts2phc` ), or between the PTP hardware clock (`phc` ) and the system clock (`phc2sys` ).
62
- Applicable to T-GM clocks only.
63
51
|`{from="master", iface="ens2fx", node="compute-1.example.com", process="ts2phc"} 1.038099569e+09`
64
52
65
53
|`openshift_ptp_offset_ns`
66
54
|Returns the offset in nanoseconds between the DPLL clock or the GNSS clock source and the NIC hardware clock.
67
- Applicable to T-GM clocks only.
68
55
|`{from="phc", iface="CLOCK_REALTIME", node="compute-1.example.com", process="phc2sys"} -9`
69
56
70
57
|`openshift_ptp_process_restart_count`
71
- |Returns a count of the number of times the `ptp4l` process was restarted.
58
+ |Returns a count of the number of times the `ptp4l` and `ts2phc` processes were restarted.
72
59
|`{config="ptp4l.0.config", node="compute-1.example.com",process="phc2sys"} 1`
73
60
74
61
|`openshift_ptp_process_status`
75
- |Returns a status code that shows whether the PTP process is running or not.
62
+ |Returns a status code that shows whether the PTP processes are running or not.
76
63
|`{config="ptp4l.0.config", node="compute-1.example.com",process="phc2sys"} 1`
77
64
78
65
|`openshift_ptp_threshold`
@@ -82,27 +69,48 @@ a|Returns values for `HoldOverTimeout`, `MaxOffsetThreshold`, and `MinOffsetThre
82
69
* `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.
83
70
|`{node="compute-1.example.com", profile="grandmaster", threshold="HoldOverTimeout"} 5`
84
71
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`
72
+ |====
73
+
74
+ [discrete]
75
+ == PTP fast event metrics only when T-GM is enabled
76
+
77
+ The following table describes the PTP fast event metrics that are available only when PTP grandmaster clock (T-GM) is enabled.
78
+
79
+ .PTP fast event metrics when T-GM is enabled
80
+ [cols="1,4,3", options="header"]
81
+ |====
82
+ |Metric
83
+ |Description
84
+ |Example
85
+
86
+ |`openshift_ptp_frequency_status`
87
+ |Returns the current status of the digital phase-locked loop (DPLL) frequency for the NIC.
88
+ Possible values are -1 (`UNKNOWN`), 0 (`INVALID`), 1 (`FREERUN`), 2 (`LOCKED`), 3 (`LOCKED_HO_ACQ`), or 4 (`HOLDOVER`).
89
+ |`{from="dpll",iface="ens2fx",node="compute-1.example.com",process="dpll"} 3`
90
90
91
91
|`openshift_ptp_nmea_status`
92
92
|Returns the current status of the NMEA connection.
93
93
NMEA is the protocol that is used for 1PPS NIC connections.
94
94
Possible values are 0 (`UNAVAILABLE`) and 1 (`AVAILABLE`).
95
95
|`{iface="ens2fx",node="compute-1.example.com",process="ts2phc"} 1`
96
96
97
+ |`openshift_ptp_phase_status`
98
+ |Returns the status of the DPLL phase for the NIC.
99
+ Possible values are -1 (`UNKNOWN`), 0 (`INVALID`), 1 (`FREERUN`), 2 (`LOCKED`), 3 (`LOCKED_HO_ACQ`), or 4 (`HOLDOVER`).
100
+ |`{from="dpll",iface="ens2fx",node="compute-1.example.com",process="dpll"} 3`
101
+
102
+ |`openshift_ptp_pps_status`
103
+ |Returns the current status of the NIC 1PPS connection.
104
+ You use the 1PPS connection to synchronize timing between connected NICs.
105
+ Possible values are 0 (`UNAVAILABLE`) and 1 (`AVAILABLE`).
106
+ |`{from="dpll",iface="ens2fx",node="compute-1.example.com",process="dpll"} 1`
107
+
97
108
|`openshift_ptp_gnss_status`
98
109
|Returns the current status of the global navigation satellite system (GNSS) connection.
99
110
GNSS provides satellite-based positioning, navigation, and timing services globally.
100
111
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
112
|`{from="gnss",iface="ens2fx",node="compute-1.example.com",process="gnss"} 3`
102
113
103
- |`openshift_ptp_ha_profile_status`
104
- |Returns the current status of the highly available system clock when there are multiple time sources on different NICs.
105
- Possible values are 0 (`INACTIVE` ), and 1 (`ACTIVE` ).
106
- |`{node="node1",process="phc2sys",profile="profile1"} 1`
107
- `{node="node1",process="phc2sys",profile="profile2"} 0`
108
114
|====
115
+
116
+
0 commit comments