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. Only when the SMF session is a DCNR supported, then the “dcnr” label value is enabled. The label doesn’t support non-dcnr sessions.
The following is a sample query to count the DCNR active SMF session:
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 added a new label “dcnr” in the existing session gauge “smf_session_counter”. If SMF session is a DCNR session, then “dcnr” label value is “enable” otherwise it is “disable” for DCNR session.
Sample query to count DCNR active SMF sessions:
sum (smf_session_counters{dcnr_on="enable"}) by (dcnr)
For DCNR statistics added a new label “dcnr” in the existing counter “smf_service_stats”. For DCNR session this counter pegs with below labels values:
-
Attempt Statistics - dcnr= “enable” and status= “attempted”
-
Success Statistics – dcnr= “enable” and status= “success”
-
Failure Statistics - dcnr= “enable” and status= “failures”
Sample query for DCNR statistics:
sum (smf_session_stats{dcnr_on="enable"}) by (dcnr, status, reason)
Secondary Rat Data Usage Reports
For Secondary-Rat-Data-Usage-Reports added new counter “smf_secondary_rat_usage_report_stats”
Labels for these stats include ebi, qfi, rat_type, reason, service_name, status. For this counter pegs with below labels values:
-
ebi=ebi-val
-
qfi=qfi-val
-
rat_type=NR
-
reason=success/failure
-
service_name=smf-service
-
status=ReceivedFromSgw/SentToChf
Sample query for DCNR statistics:
sum (smf_secondary_rat_usage_report_stats”) by (qfi, status, reason)
Presence Reporting
For Presence-Reporting Session Count added a new label “pra” in the existing session gauge “smf_session_counter”. If SMF session has presence-reporting enabled then. “presence-reporting” label value is “enable” otherwise it is “none” if presence-reporting is not enabled.
Sample query to count DCNR active SMF session:
sum (smf_session_counters{ pra ="enable"}) by (pra)
For Presence-Reporting statistics added a new label “presence-reporting” in the existing counter “smf_service_stats”. For presence-reporting session this counter pegs with below labels values.
-
Attempt Statistics - pra = “enable” and status= “attempted”
-
Success Statistics – pra = “enable” and status= “success”
-
Failure Statistics - pra = “enable” and status= “failures”
Sample query for DCNR statistics:
sum (smf_session_stats{ pra ="enable"}) by (pra, status, reason)