Viewing Alert Logger

By default, alert logger stores all the generated alerts. You can view the stored alerts using the following show command.

show alert history [ detail | summary ] [ filtering ]

You can narrow down the result using the following filtering options:

  • annotations—Displays the annotations of the alert.

  • endsAt—Displays the end time of the alert.

  • labels—Displays the additional labels of the alert.

  • severity—Displays the severity of the alert.

  • source—Displays the source of the alert.

  • startsAt—Displays the start time of the alert.

  • type—Displays the type of the alert.

Use the following show command to view the history of the alerts configured in the system:
show alerts history detail
alerts history detail UEReg 11576e6a86da
 severity    major
 type        "Communications Alarm"
 startsAt    2021-10-24T07:56:24.857Z
 endsAt      2021-10-24T08:31:24.857Z
 source      System
 summary     "fired when ue reg fails"
 labels      [ "alertname: UEReg" "cluster: amf-cndp-b19-4_cee-cisco" "monitor: prometheus" "replica: amf-cndp-b19-4_cee-cisco" "severity: major" ]
 annotations [ "summary: fired when ue reg fails" "type: Communications Alarm" ]

You can view the active alerts using show alerts active command. The alerts remain active as long as the evaluated expression is true.

show alerts active detail
alerts active detail UeRegistration 92b6dcdd8726
 severity    major
 type        "Communications Alarm"
 startsAt    2021-10-24T14:56:42.732Z
 source      System
 summary     "This alert is fired when the UE registration procedure success is below specified threshold"
 labels      [ "alertname: UeRegistration" "cluster: amf-cndp-b19-4_cee-cisco" "monitor: prometheus" "replica: amf-cndp-b19-4_cee-cisco" "severity: major" ]
 annotations [ "summary: This alert is fired when the UE registration procedure success is below specified threshold" "type: Communications Alarm" ]