Skip to content

Commit

Permalink
move monitor descriptions to right level and add monitors to manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle-Neale committed Feb 13, 2024
1 parent fce6374 commit 82db91f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion airflow/assets/monitors/heartbeat_failures.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"tags": [
"integration:airflow"
],
"description": "Notify your team of number of heartbeats failed for a job",
"definition": {
"description": "Notify your team of number of heartbeats failed for a job",
"name": "Number of failed Heartbeats for a {{job_name.name}} job",
"type": "query alert",
"query": "avg(last_5m):avg:airflow.job.heartbeat.failure{*} by {host,url,job_name} >= 1",
Expand Down
2 changes: 1 addition & 1 deletion airflow/assets/monitors/ongoing_duration.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"tags": [
"integration:airflow"
],
"description": "Notify your team when a dag run fails after an hour",
"definition": {
"description": "Notify your team when a dag run fails after an hour",
"name": "DAG task ongoing duration",
"type": "query alert",
"query": "max(current_1h):avg:airflow.dag.task.ongoing_duration{*} by {dag_id,task_id} > 3600",
Expand Down
4 changes: 4 additions & 0 deletions airflow/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
"dashboards": {
"Airflow Overview": "assets/dashboards/overview.json"
},
"monitors": {
"Heartbeat Failure": "assets/monitors/heartbeat_failure.json",
"Ongoing Duration": "assets/monitors/ongoing_duration.json"
},
"logs": {
"source": "airflow"
}
Expand Down

0 comments on commit 82db91f

Please sign in to comment.