Skip to content

Commit ab9a7f6

Browse files
authored
Merge pull request #70235 from aireilly/TELCODOCS-1480-missing-ptp-events
TELCODOCS-1480 - Adding new and missing PTP events
2 parents 8c8cb88 + 9d7c630 commit ab9a7f6

File tree

1 file changed

+40
-13
lines changed

1 file changed

+40
-13
lines changed

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

Lines changed: 40 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,54 +22,81 @@ Some of the following metrics are applicable for PTP grandmaster clocks (T-GM) o
2222

2323
|`openshift_ptp_clock_class`
2424
|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`).
2626
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`
2828

2929
|`openshift_ptp_clock_state`
3030
|Returns the current PTP clock state for the interface.
3131
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`
3333

3434
|`openshift_ptp_delay_ns`
3535
|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`
3737

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.
4141
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`
4353

4454
|`openshift_ptp_interface_role`
45-
|Describes the configured PTP clock role for the interface.
55+
|Returns the configured PTP clock role for the interface.
4656
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`
4958

5059
|`openshift_ptp_max_offset_ns`
5160
|Returns the maximum offset in nanoseconds between 2 clocks or interfaces.
5261
For example, between the upstream GNSS clock and the NIC (`ts2phc`), or between the PTP hardware clock (`phc`) and the system clock (`phc2sys`).
5362
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`
5564

5665
|`openshift_ptp_offset_ns`
5766
|Returns the offset in nanoseconds between the DPLL clock or the GNSS clock source and the NIC hardware clock.
5867
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`
6069

6170
|`openshift_ptp_process_restart_count`
6271
|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`
6473

6574
|`openshift_ptp_process_status`
6675
|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`
6877

6978
|`openshift_ptp_threshold`
7079
a|Returns values for `HoldOverTimeout`, `MaxOffsetThreshold`, and `MinOffsetThreshold`.
7180

7281
* `holdOverTimeout` is the time value in seconds before the PTP clock event state changes to `FREERUN` when the PTP master clock is disconnected.
7382
* `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`
75102
|====

0 commit comments

Comments
 (0)