open5gs/configs
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
..
freeDiameter Follow-up on #1865 2022-11-12 09:37:43 +09:00
logrotate fix for scp daemon (#1872) 2022-10-31 07:14:53 +09:00
newsyslog fix for scp daemon (#1872) 2022-10-31 07:14:53 +09:00
open5gs [PCF] Add metrics support 2022-12-06 22:57:24 +09:00
systemd fix for scp daemon (#1872) 2022-10-31 07:14:53 +09:00
310014.yaml.in [AMF/MME] Added Timer Configuration (#1905) 2022-11-29 23:22:16 +09:00
csfb.yaml.in [AMF/MME] Added Timer Configuration (#1905) 2022-11-29 23:22:16 +09:00
meson.build Prometheus metrics set to default 2022-11-21 22:06:29 +09:00
non3gpp.yaml.in [AMF/MME] Added Timer Configuration (#1905) 2022-11-29 23:22:16 +09:00
sample.yaml.in [PCF] Add metrics support 2022-12-06 22:57:24 +09:00
slice.yaml.in [PCF] Add metrics support 2022-12-06 22:57:24 +09:00
srslte.yaml.in [PCF] Add metrics support 2022-12-06 22:57:24 +09:00
volte.yaml.in [PCF] Add metrics support 2022-12-06 22:57:24 +09:00
vonr.yaml.in [PCF] Add metrics support 2022-12-06 22:57:24 +09:00