RADIUS Authentication Type Message Failure Threshold Alert

Use the following example to configure alerts related to RADIUS Authentication Type Message Failure threshold.

rule Radius_Auth_Type_SR 
   expression "sum by (namespace, radius_auth_algorithm) (increase(radius_authentication_message_stats{radius_auth_algorithm=\"radius_auth_algorithm_.*\", status=\"success\"}[1m])) / sum by (namespace) (increase(radius_authentication_message_stats{radius_auth_algorithm=\"radius_auth_algorithm_.*\", status=\"attempted\"}[1m])) < 0.80"
   severity   major
   type       "Processing Error Alarm"
   annotation summary
     value "This alert is fired when the percentage of successful Radius Auth Type response received is lesser than threshold"
   exit
  exit