RADIUS Accounting Stop/Terminate Message Failure Threshold Alert

Use the following example to configure alerts related to RADIUS Accounting Stop/Terminate Message Failure threshold.

rule Radius_Acct_Stop_SR 
   expression "sum by (namespace) (increase(radius_accounting_message_stats{procedure_type=\"radius_terminate\", status=\"success\"}[5m])) / sum by (namespace) (increase(radius_accounting_message_stats{procedure_type=\"radius_terminate\", status=\"attempted\"}[5m])) < 0.80"
   severity   major
   type       "Processing Error Alarm"
   annotation summary
     value "This service based alert is fired when the percentage of successful Radius Accounting Stop successful response received is lesser than threshold"
   exit
  exit