N2 PDU Setup Success

To configure alerts related to the N2 PDU Setup Success Request, use the following configuration:

alerts rules group AMFSvcStatus 
 interval-seconds 300
 rule AMFN2PduSetupRequestSuccess    
  expression "sum(increase(amf_ngap_message_total{message_type='N2PduSessResourceSetupRsp'}[5m])) / sum(increase(amf_ngap_message_total{message_type='N2PduSessResouceSetupReq'}[5m])) < 0.95"    
  severity major
  type "Communications Alarm"
  annotation summary
  value "This alert is fired when the percentage of Ngap PDU Setup Response is lesser than threshold.”        
  exit 
exit