Skip to content

Commit f6b02d8

Browse files
authored
Merge pull request #78979 from sr1kar99/1913-t-gm-metrics
2 parents 24e176b + 38753ca commit f6b02d8

File tree

1 file changed

+39
-31
lines changed

1 file changed

+39
-31
lines changed

modules/nw-ptp-operator-metrics-reference.adoc

Lines changed: 39 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@
88

99
The following table describes the PTP fast events metrics that are available from cluster nodes where the `linuxptp-daemon` service is running.
1010

11-
[NOTE]
12-
====
13-
Some of the following metrics are applicable for PTP grandmaster clocks (T-GM) only.
14-
====
15-
1611
.PTP fast event metrics
1712
[cols="1,4,3", options="header"]
1813
|====
@@ -23,7 +18,6 @@ Some of the following metrics are applicable for PTP grandmaster clocks (T-GM) o
2318
|`openshift_ptp_clock_class`
2419
|Returns the PTP clock class for the interface.
2520
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.
2721
|`{node="compute-1.example.com",process="ptp4l"} 6`
2822

2923
|`openshift_ptp_clock_state`
@@ -35,22 +29,17 @@ Possible values for PTP clock state are `FREERUN`, `LOCKED`, or `HOLDOVER`.
3529
|Returns the delay in nanoseconds between the primary clock sending the timing packet and the secondary clock receiving the timing packet.
3630
|`{from="master", iface="ens2fx", node="compute-1.example.com", process="ts2phc"} 0`
3731

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+
3838
|`openshift_ptp_frequency_adjustment_ns`
3939
|Returns the frequency adjustment in nanoseconds between 2 PTP clocks.
4040
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.
4241
|`{from="phc", iface="CLOCK_REALTIME", node="compute-1.example.com", process="phc2sys"} -6768`
4342

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-
5443
|`openshift_ptp_interface_role`
5544
|Returns the configured PTP clock role for the interface.
5645
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 (`
5948
|`openshift_ptp_max_offset_ns`
6049
|Returns the maximum offset in nanoseconds between 2 clocks or interfaces.
6150
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.
6351
|`{from="master", iface="ens2fx", node="compute-1.example.com", process="ts2phc"} 1.038099569e+09`
6452

6553
|`openshift_ptp_offset_ns`
6654
|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.
6855
|`{from="phc", iface="CLOCK_REALTIME", node="compute-1.example.com", process="phc2sys"} -9`
6956

7057
|`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.
7259
|`{config="ptp4l.0.config", node="compute-1.example.com",process="phc2sys"} 1`
7360

7461
|`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.
7663
|`{config="ptp4l.0.config", node="compute-1.example.com",process="phc2sys"} 1`
7764

7865
|`openshift_ptp_threshold`
@@ -82,27 +69,48 @@ a|Returns values for `HoldOverTimeout`, `MaxOffsetThreshold`, and `MinOffsetThre
8269
* `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.
8370
|`{node="compute-1.example.com", profile="grandmaster", threshold="HoldOverTimeout"} 5`
8471
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`
9090

9191
|`openshift_ptp_nmea_status`
9292
|Returns the current status of the NMEA connection.
9393
NMEA is the protocol that is used for 1PPS NIC connections.
9494
Possible values are 0 (`UNAVAILABLE`) and 1 (`AVAILABLE`).
9595
|`{iface="ens2fx",node="compute-1.example.com",process="ts2phc"} 1`
9696

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+
97108
|`openshift_ptp_gnss_status`
98109
|Returns the current status of the global navigation satellite system (GNSS) connection.
99110
GNSS provides satellite-based positioning, navigation, and timing services globally.
100111
Possible values are 0 (`NOFIX`), 1 (`DEAD RECKONING ONLY`), 2 (`2D-FIX`), 3 (`3D-FIX`), 4 (`GPS+DEAD RECKONING FIX`), 5, (`TIME ONLY FIX`).
101112
|`{from="gnss",iface="ens2fx",node="compute-1.example.com",process="gnss"} 3`
102113

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`
108114
|====
115+
116+

0 commit comments

Comments
 (0)