This topic describes how to view the evaluation results of alert rules in the Log Service console. Log Service creates a Logstore to log the evaluation results of alert rules. Log Service also creates a dashboard to visualize the evaluation results.

Background information

  • You can view the evaluation logs of alert rules in a Logstore.

    After you create an alert rule in a project, Log Service creates a Logstore named internal-alert-history. The Logstore stores the evaluation logs of the alert rules in the project. A log entry is generated and written to the Logstore each time Log Service evaluates an alert rule in the project, regardless of whether an alert is triggered. For more information, see Alarm log fields.

    Note You are not charged for the internal-alert-history Logstore. The Logstore cannot be deleted or modified. A log entry in the Logstore is retained for seven days.
  • You can view the evaluation results of alert rules in a dashboard.
    After you create an alert rule in a project, Log Service creates a dashboard named Alert History Statistics. In the dashboard, the evaluation results of the alert rules in the project are displayed. The evaluation results include the number of triggered alerts, the percentage of evaluations in which the trigger condition is met, the percentage of evaluations for which alert notifications are sent to evaluations in which the trigger condition is met, and the top 10 alert rules that are sorted based on the number of evaluations.
    Note The Alert History Statistics dashboard cannot be deleted or modified.

View the evaluation logs of alert rules in a Logstore

  1. Log on to the Log Service console.
  2. In the Projects section, click a project name.
  3. On the Log Management > Logstores tab, choose Management > Search & Analysis to the right of the internal-alert-history Logstore.
  4. On the page that appears, view the evaluation logs of alert rules.

View the evaluation results of alert rules in a dashboard

  1. Log on to the Log Service console.
  2. In the Projects section, click a project name.
  3. In the left-side navigation bar, click the Dashboard icon.
  4. In the Dashboard pane, click the Alert History Statistics dashboard.
  5. In the Alert History Statistics dashboard, view the evaluation results of alert rules.
    The evaluation results in the Alert History Statistics dashboard includes whether an alert is triggered, the reason why the alert is triggered, and the error information that is related to the alert.Alert History Statistics