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

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

Since slice itself is not unique, the plmnid label is exposed in
addition to snssai.

AM policy:
fivegs_pcffunction_pa_policyamassoreq and
fivegs_pcffunction_pa_policyamassosucc do not expose snssai label
since it is not available at the time of exposure.
plmnid is defined during AM policy processing, so not to lose the
difference to ...succ, the basic metric
fivegs_pcffunction_pa_policyamassoreq is preserved.

SM policy:
snssai is defined during SM policy processing, so not to lose the
difference to ...succ, the basic metric
fivegs_pcffunction_pa_policysmassoreq is preserved.

Those 2 basic metrics retain their position but are exposed with empty
labels.
Metrics with labels are called later, when the label values are known.

Exposed metrics example:
-standard counters:
fivegs_pcffunction_pa_policyamassoreq{plmnid=""} 3
fivegs_pcffunction_pa_policyamassoreq{plmnid="99970"} 3
fivegs_pcffunction_pa_policyamassosucc{plmnid="99970"} 3
fivegs_pcffunction_pa_policysmassoreq{plmnid="",snssai=""} 3
fivegs_pcffunction_pa_policysmassoreq{plmnid="99970",snssai="1000009"} 3
fivegs_pcffunction_pa_policysmassosucc{plmnid="99970",snssai="1000009"} 3

-nonstandard gauge (added for controlling purposes -
same metric as existing metric on AMF and SMF):
fivegs_pcffunction_pa_sessionnbr{plmnid="99970",snssai="1000009"} 0
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 [PCF] Add metrics support 2022-12-06 22:57:24 +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