Session Setup Failure

Use the following commands to configure alerts related to the Session Setup Failure procedure.

alerts rules group SMFSession 
   interval-seconds 300 
   rule SMFSessionSetupFailure 
   expression “sum(smf_service_stats{procedure_type=~\”pdu_sess_create|pdn_sess_create\” , status=\“failures\”}) / sum(smf_service_stats{procedure_type=\”pdu_sess_create|pdn_sess_create\” , status=\“attempted\”}) >  0.05 “ 
   severity major 
   type "Communications Alarm" 
   annotation summary 
   value "This alert is fired when failed to setup sessions is more than 5%” 
   exit 
exit