N8 SDM Unsubscribe Request

To configure alerts related to the N8 SDM Unsubscribe Request, use the following configuration:

alerts rules group AMFSvcStatus 
 interval-seconds 300
 rule AMFN8SdmUnSubscriptionSuccess 
  expression "sum(increase(n8_service_stats{message_type='NudmSdmUnSubscriptionRsp', status='success'}[5m])) / sum(increase(n8_service_stats{message_type='NudmSdmUnSubscriptionReq', status='success'}[5m])) < 0.95" 
  severity major
  type "Communications Alarm"
  annotation summary
  value "This alert is fired when the percentage of SDM UnSubscription responses received is lesser than threshold.” 
  exit 
exit