Skip to content

Commit

Permalink
Update escalation auditor logs to expose succeeding count (#4431)
Browse files Browse the repository at this point in the history
Related to grafana/oncall-private#2619
(we need the succeeding number to make the SLO query happy with
cluster/namespace filtering)
  • Loading branch information
matiasb authored May 31, 2024
1 parent d8e1a1d commit 2aa8639
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions engine/apps/alerts/tasks/check_escalation_finished.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,9 @@ def check_escalation_finished_task() -> None:
if total_alert_groups_count == 0
else (total_alert_groups_count - failed_alert_groups_count) / total_alert_groups_count * 100
)
task_logger.info(f"Alert groups that failed escalation: {failed_alert_groups_count}")
task_logger.info(f"Alert groups total: {total_alert_groups_count}")
task_logger.info(f"Alert groups failing escalation: {failed_alert_groups_count}")
task_logger.info(f"Alert groups succeeding escalation: {total_alert_groups_count - failed_alert_groups_count}")
task_logger.info(f"Alert groups total escalations: {total_alert_groups_count}")
task_logger.info(f"Alert group notifications success ratio: {success_ratio:.2f}")

if alert_group_ids_that_failed_audit:
Expand Down

0 comments on commit 2aa8639

Please sign in to comment.