open5gs/lib
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
..
app [AMF/MME] Added Timer Configuration (#1905) 2022-11-29 23:22:16 +09:00
asn1c [NRF] Fixed library load error 2022-08-26 10:57:11 +09:00
core [AMF/MME] Refactor SM to prevent crash (#1912) 2022-11-26 21:38:46 +09:00
crypt [NRF] Fixed library load error 2022-08-26 10:57:11 +09:00
dbi remove warning in MacOSX (#1797) 2022-10-25 21:14:53 +09:00
diameter [MME] Cancel Location while Idle (#1797) 2022-10-05 11:06:01 +09:00
gtp [UPF] Fixed an infinte loop when ext_len is 0 2022-11-30 16:40:57 +09:00
ipfw [NRF] Fixed library load error 2022-08-26 10:57:11 +09:00
metrics Prometheus metrics set to default 2022-11-21 22:06:29 +09:00
nas [AMF/MME] Added Timer Configuration (#1905) 2022-11-29 23:22:16 +09:00
ngap [NRF] Fixed library load error 2022-08-26 10:57:11 +09:00
pfcp Fixed alpine stack overflow (#1911) 2022-11-27 00:03:56 +09:00
proto remove warning in MacOSX (#1797) 2022-10-25 21:14:53 +09:00
s1ap [NRF] Fixed library load error 2022-08-26 10:57:11 +09:00
sbi [PCF] Add metrics support 2022-12-06 22:57:24 +09:00
sctp [ALL] Removing trailing whitespace and tab 2022-09-02 23:38:39 +09:00
tun [ALL] Removing trailing whitespace and tab 2022-09-02 23:38:39 +09:00
meson.build Move src/../nf-sm.[ch] to lib/sbi/nf-sm.[ch] 2022-08-12 14:03:53 +09:00