Configure the following alerts based on requirements.
RADIUS Authorization Success Rate
Use the following commands to configure RADIUS authorization success rate alerts.
alerts rules group RadiusEP
interval-seconds 300
rule RadiusAuthSuccessRate
expression "sum by (namespace)(increase(Radius_Requests_Statistics{ radMsgCode=\"AaaAuthReq\",radPacketType=\"Rx\",radResult=\"Success\"}[5m]))/sum by (namespace)(increase(Radius_Requests_Statistics{ radMsgCode=\"AaaAuthReq\",radPacketType=\"Tx\"}[5m])) < THRESHOLD"
severity major
type "Communications Alarm"
annotation summary
value "This alert is fired when the percentage of successful Radius Authentication responses received is lesser than threshold"
exit
exit
exit
RADIUS Accounting Success Rate
Use the following commands to configure RADIUS accounting response success rate alerts.
alerts rules group RadiusEP
interval-seconds 300
rule RadiusAcctSuccessRate
expression "sum by (namespace)(increase(Radius_Requests_Statistics{ radMsgCode=\"AaaAcctReq\",radPacketType=\"Rx\",radResult=\"Success\"}[5m]))/sum by (namespace)(increase(Radius_Requests_Statistics{ radMsgCode=\"AaaAcctReq\",radPacketType=\"Tx\"}[5m])) < THRESHOLD"
severity major
type "Communications Alarm"
annotation summary
value "This alert is fired when the percentage of successful Radius Accounting responses received is lesser than threshold"
exit
exit
exit
Radius CoA Success Rate
Use the following commands to configure RADIUS Change of Authorization (CoA) success rate alerts.
alerts rules group RadiusEP
interval-seconds 300
rule RadiusCoaSuccessRate
expression "sum by (namespace)(increase(Radius_CoaDM_Requests_Statistics{ radMsgCode=\"CoAACK\",radPacketType=\"Tx\",radResult=\"Success\"}[5m]))/sum by (namespace)(increase(Radius_CoaDM_Requests_Statistics{ radMsgCode=\"CoARequest\",radPacketType=\"Rx\"}[5m])) < THRESHOLD"
severity major
type "Communications Alarm"
annotation summary
value "This alert is fired when the percentage of successful Coa Ack received is lesser than threshold"
exit
exit
exit
Accounting Start Success Rate
Use the following commands to configure accounting start success rate alerts.
alerts rules group Accounting
interval-seconds 300
rule AcctStartSuccessRate
expression "sum by (namespace)(increase(Accounting_message_total{ acct_type=\"Start\",status=\"Success\"}[5m]))/sum by (namespace)(increase(Accounting_message_total{ acct_type=\"Start\",status=\"Attempt\"}[5m])) < THRESHOLD"
severity major
type "Processing Error Alarm"
annotation summary
value "This alert is fired when the percentage of successful Accounting Start Responses received is lesser than threshold"
exit
exit
exit
Accounting Interim Success Rate
Use the following commands to configure accounting interim success rate alerts.
alerts rules group Accounting
interval-seconds 300
rule AcctInterimSuccessRate
expression "sum by (namespace)(increase(Accounting_message_total{ acct_type=\"Interim\",status=\"Success\"}[5m]))/sum by (namespace)(increase(Accounting_message_total{ acct_type=\"Interim\",status=\"Attempt\"}[5m])) < THRESHOLD"
severity major
type "Processing Error Alarm"
annotation summary
value "This alert is fired when the percentage of successful Accounting Interim Responses received is lesser than threshold"
exit
exit
exit
Accounting Stop Success Rate
Use the following commands to configure accounting stop success rate alerts.
alerts rules group Accounting
interval-seconds 300
rule AcctStopSuccessRate
expression "sum by (namespace)(increase(Accounting_message_total{ acct_type=\"Stop\",status=\"Success\"}[5m]))/sum by (namespace)(increase(Accounting_message_total{ acct_type=\"Stop\",status=\"Attempt\"}[5m])) < THRESHOLD"
severity major
type "Processing Error Alarm"
annotation summary
value "This alert is fired when the percentage of successful Accounting Stop Responses received is lesser than threshold"
exit
exit
exit
N4 Session Creation Success Rate
Use the following commands to configure N4 session creation success rate alerts.
alerts rules group BngSession
interval-seconds 300
rule SessionCreateSuccessRate
expression "sum by (namespace,upf)(increase(bng_proto_udp_total{message_name=\"n4_session_establishment_res\",message_direction=\"inbound\", status=\"accepted\"}[5m]))/sum by (namespace,upf)(increase(bng_proto_udp_total{ message_name=\"n4_session_establishment_req\", message_direction=\"outbound\", transport_type=\"origin\",status=\"accepted\"}[5m])) < THRESHOLD"
severity major
type "Communications Alarm"
annotation summary
value "This alert is fired when the percentage of successful Session Create Responses received is lesser than expected threshold for upf: {{$labels.upf}}"
exit
exit
exit
N4 Session Update Success Rate
Use the following commands to configure N4 session update success rate alerts.
alerts rules group BngSession
interval-seconds 300
rule SessionUpdateSuccessRate
expression "sum by(namespace,upf) (increase(bng_proto_udp_total{message_name=\"n4_session_modification_res\",message_direction=\"inbound\", status=\"accepted\"}[5m]))/sum by (namespace,upf) (increase(bng_proto_udp_total{ message_name=\"n4_session_modification_req\", message_direction=\"outbound\", transport_type=\"origin\",status=\"accepted\"}[5m])) < THRESHOLD"
severity major
type "Communications Alarm"
annotation summary
value "This alert is fired when the percentage of successful Session Update Responses received is lesser than expected threshold for upf: {{$labels.upf}}"
exit
exit
exit
N4 Session Release Success Rate
Use the following commands to configure N4 session release success rate alerts.
alerts rules group BngSession
interval-seconds 300
rule SessionReleaseSuccessRate
expression "sum by (namespace,upf) (increase(bng_proto_udp_total{message_name=\"n4_session_deletion_res\",message_direction=\"inbound\", status=\"accepted\"}[5m]))/sum by (namespace,upf)(increase(bng_proto_udp_total{ message_name=\"n4_session_deletion_req\", message_direction=\"outbound\", transport_type=\"origin\",status=\"accepted\"}[5m])) < THRESHOLD"
severity major
type "Communications Alarm"
annotation summary
value "This alert is fired when the percentage of successful Session Release Responses received is lesser than expected threshold for upf: {{$labels.upf}}"
exit
exit
exit
N4 Session Request Timeouts
Use the following commands to configure alerts to calculate the rate of N4 session requests that timeout awaiting response
from the UP.
alerts rules group BngSession
interval-seconds 300
rule N4SessionReqTimeouts
expression "sum by (namespace, upf)(increase(bng_proto_udp_total{message_name=~\"n4_session_establishment_req|n4_session_modification_req|n4_session_deletion_req\",message_direction=\"outbound\", status=\"Timeout\"}[15m]))/sum by (namespace, upf)(increase(bng_proto_udp_total{ message_name=~\"n4_session_establishment_req|n4_session_modification_req|n4_session_deletion_req\", message_direction=\"outbound\", transport_type=\"origin\"}[15m])) > THRESHOLD"
severity major
type "Communications Alarm"
annotation summary
value "This alert is fired for upf {{$labels.upf}} as n4 session requests are getting timeout for last 15mins"
exit
exit
exit