From 2aa8639e2a7d1712745c510bf0be34eb551a5ab5 Mon Sep 17 00:00:00 2001 From: Matias Bordese Date: Fri, 31 May 2024 15:29:31 -0300 Subject: [PATCH] Update escalation auditor logs to expose succeeding count (#4431) Related to https://github.com/grafana/oncall-private/issues/2619 (we need the succeeding number to make the SLO query happy with cluster/namespace filtering) --- engine/apps/alerts/tasks/check_escalation_finished.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/engine/apps/alerts/tasks/check_escalation_finished.py b/engine/apps/alerts/tasks/check_escalation_finished.py index aa8fb78b..9f3fb62d 100644 --- a/engine/apps/alerts/tasks/check_escalation_finished.py +++ b/engine/apps/alerts/tasks/check_escalation_finished.py @@ -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: