open5gs/src
Gaber Stare 40b4c9d1c9 [UPF] Add metrics support
Expose metrics with labels according to ETSI TS 128 552 V16.13.0 in
UPF by using hash.

The metrics are named respecting the rule:
<generation>_<measurement_object_class>_<measurement_family_name>_<metric_name_as_in_TS_128_552>

5qi is not available in UPF.
To present 5qi to the user, MN will have to maintain a table qfi->5qi
for each QoS flow (will have to get information from SMF).
So UPF has to expose qfi. qfi itself is not useful. When used, UPF will
have to expose additional label to define the session (e.g. source
interface).

Label dnn is set to value of APN/DNN received in Establishment.
Since SMF does not add APN/DNN to Establishment, the label is empty.
When APN/DNN will be set by SMF, it should be added to sess in UPF
and used in metrics on Modification and Deletion.

Both datavolumeqosleveln3upf are exposed in bytes.
MN is providing the transformation to kbits.

fivegs_upffunction_upf_qosflows should expose the number of QFIs used in
sessions, but exposes number of QER rules, which is currently equal to
QFIs.
The label snsssai is not provided since the slice is not available on UPF.

Exposed metrics example:
Standard counters:
fivegs_ep_n3_gtp_indatapktn3upf 28637
fivegs_ep_n3_gtp_outdatapktn3upf 14729
fivegs_upffunction_sm_n4sessionestabreq 4
fivegs_upffunction_sm_n4sessionestabfail{cause="66"} 1
fivegs_upffunction_sm_n4sessionestabfail{cause="71"} 68
fivegs_upffunction_sm_n4sessionestabfail{cause="68"} 4
fivegs_upffunction_sm_n4sessionestabfail{cause="72"} 15
fivegs_upffunction_sm_n4sessionestabfail{cause="75"} 3
fivegs_upffunction_sm_n4sessionestabfail{cause="65"} 4
fivegs_upffunction_sm_n4sessionreport 0
fivegs_upffunction_sm_n4sessionreportsucc 0
fivegs_ep_n3_gtp_indatavolumeqosleveln3upf{qfi="1"} 39792997
fivegs_ep_n3_gtp_outdatavolumeqosleveln3upf{qfi="1"} 737548
Nonstandard gauge (added for controlling purposes -
same metric as existing metric on AMF and SMF):
fivegs_upffunction_upf_sessionnbr 1
Standard gauge:
fivegs_upffunction_upf_qosflows{dnn=""} 1
2022-12-06 22:57:24 +09:00
..
amf amf: fix regression for smf selection 2022-12-04 15:12:15 +09:00
ausf [AUSF] Handle UEAuthentication DELETE 2022-11-29 23:10:49 +09:00
bsf Fixed crash after 48 hours of running (#1893) 2022-11-18 23:28:35 +09:00
hss remove warning in MacOSX (#1797) 2022-10-25 21:14:53 +09:00
mme Added more log in GTP Error (#1920) 2022-12-02 09:10:49 +09:00
nrf Follow-up on #1865 2022-11-12 09:37:43 +09:00
nssf Fixed crash after 48 hours of running (#1893) 2022-11-18 23:28:35 +09:00
pcf Fixed crash after 48 hours of running (#1893) 2022-11-18 23:28:35 +09:00
pcrf [ALL] Removing trailing whitespace and tab 2022-09-02 23:38:39 +09:00
scp Fixed crash after 48 hours of running (#1893) 2022-11-18 23:28:35 +09:00
sgwc Added more log in GTP Error (#1920) 2022-12-02 09:10:49 +09:00
sgwu Continue to fix alpine stack overflow (#1911) 2022-11-27 00:11:34 +09:00
smf Continue to fix alpine stack overflow (#1911) 2022-11-27 00:11:34 +09:00
udm [SBI] Remove redundant code (#1923) 2022-11-30 17:01:30 +09:00
udr [UDM/UDR] Handle UEAuthentication authRemovalInd 2022-11-29 23:10:49 +09:00
upf [UPF] Add metrics support 2022-12-06 22:57:24 +09:00
main.c [SBI] Remove one octet length in FQDN (#1333) 2022-01-23 13:49:03 +09:00
meson.build Prometheus metrics set to default 2022-11-21 22:06:29 +09:00