Statistics Support
The SMF uses the "dcnr" label in the session gauge "smf_session_counter" and "smf_service_stats" for collecting the DCNR session count. When the SMF session is DCNR supported, the "dcnr" label value is enabled. The label does not support non-DCNR sessions.
The following is a sample query to count the active DCNR SMF sessions:
nts{action_type="rejected",app_name="smf",cluster="smf",data_center="unknown",
failure_type="hdr_decode_failure",hdr_decode_fail_reason="",instance_id="0",interface_type="
",message_type="",reject_cause="",service_name="gtpc-ep"} 2
smf_session_counter: sum (smf_session_counters{dcnr_on="enable"}) by (dcnr)
smf_service_stats: sum (smf_session_stats{dcnr_on="enable"}) by (dcnr, status, reason)
smf_session_counters{ presence-reporting ="enable"}) by (presence-reporting)
DCNR Session Count
For DCNR, Session Count supports the "dcnr" label in the existing session gauge "smf_session_counter". If the SMF session is a DCNR session, then the "dcnr" label value is "enable", otherwise it is "disable" for DCNR session.
The following is a sample query to count the DCNR active SMF sessions:
sum (smf_session_counters{dcnr_on="enable"}) by (dcnr)
For DCNR statistics, the existing "smf_service_stats" counter supports the "dcnr" label. For DCNR sessions, this counter pegs the following labels and values:
-
Attempt Statistics – dcnr= "enable" and status= "attempted"
-
Success Statistics – dcnr= "enable" and status= "success"
-
Failure Statistics – dcnr= "enable" and status= "failures"
The following is a sample query for DCNR statistics:
sum (smf_session_stats{dcnr_on="enable"}) by (dcnr, status, reason)
Secondary RAT Data Usage Reports
The Secondary-Rat-Data-Usage-Reports support the "smf_secondary_rat_usage_report_stats" counter. Labels for these statistics include ebi, qfi, rat_type, reason, service_name, and status. This counter pegs with the following labels and values:
-
ebi=ebi-val
-
qfi=qfi-val
-
rat_type=NR
-
reason=success/failure
-
service_name=smf-service
-
status=ReceivedFromSgw/SentToChf
The following is a sample query for DCNR statistics:
sum (smf_secondary_rat_usage_report_stats”) by (qfi, status, reason)
Presence Reporting
For Presence Reporting, Session Count supports the "pra" label in the existing session gauge "smf_session_counter". If the SMF session has presence reporting enabled, then the "presence-reporting" label value is "enable" else it is "none" if presence reporting is not enabled.
The following is a sample query to count the DCNR active SMF sessions:
sum (smf_session_counters{ pra ="enable"}) by (pra)
For Presence Reporting, statistics support the "presence-reporting" label in the existing counter "smf_service_stats". For presence-reporting session, this counter pegs the following labels and values:
-
Attempt Statistics – pra = "enable" and status= "attempted"
-
Success Statistics – pra = "enable" and status= "success"
-
Failure Statistics – pra = "enable" and status= "failures"
The following is a sample query for DCNR statistics:
sum (smf_session_stats{ pra ="enable"}) by (pra, status, reason)