Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔧 feat: modify the alert rule for DAG failure (#20) #20

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions config_files/prometheus/alerts/airflow.rules
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ groups:
- name: airflow_alerts
rules:
- alert: AirflowDagFailed
expr: sum by (dag_id) (af_agg_dagrun_duration_failed) > 0
expr: sum by (dag_id, task_id) (increase(af_agg_ti_finish{state="failed"}[5m])) > 0
for: 1m
labels:
severity: critical
Expand All @@ -17,4 +17,4 @@ groups:
severity: critical
annotations:
summary: "Airflow task failed: {{ $labels.task_name }}"
description: "Task '{{ $labels.task_name }}' in DAG '{{ $labels.dag_id }}' failed."
description: "Task '{{ $labels.task_name }}' in DAG '{{ $labels.dag_id }}' failed."