Airflow
Airflow listener, late runs, failed runs, heartbeat
Airflow DAG monitoring is included in the workspace plan. There is no separate Airflow plan and no add-on. Free watches 5 DAGs, Pro 50, and Team 100, counted separately from tables. Prices on the pricing page are in US dollars.
Scheduled table checks run once a day on every plan. Airflow checks run about every 15 minutes. You can also run a table check yourself. A run is late when it has not started within 5 minutes of the expected time. The next Airflow check, at most about 15 minutes later, opens the issue once. The same open issue is not alerted again every 15 minutes.
Alert emails, Slack messages, and the times in the app use the workspace time zone. It starts as the browser's zone at signup. The owner can change it in Settings, and daylight saving is included. Airflow schedules are still evaluated the way Airflow defines them. The time zone does not change detection.
A free script, with no account
rowmonitor-runcheck is a free, open-source script with no account. It checks the latest Airflow DAG run on Airflow 2.6+ or 3.x, and a dbt Core run_results.json. It does not read dbt Cloud. It posts to a Slack incoming webhook or a generic webhook. It does not keep run history, and it does not do late versus never-arrived detection, table checks, or a dashboard. It does not phone home. Install from PyPI: pip install rowmonitor-runcheck. Source: GitHub. The commands are on the Airflow page.
The rest of this page is the rowmonitor-airflow listener for hosted Row Monitor: Free, Pro at US$39 a month, or Team at US$99 a month. The listener is included in every plan. It is not a paid add-on.
Before you install
- Sign up and open Airflow in the app.
- Create a deployment. Copy the ingest token. It is shown once. Rotating or revoking replaces it.
- Install the plugin on the Airflow scheduler and on every worker, then restart those processes.
Install on Airflow 2.6+ and 3.x
Install the package on the scheduler and on every worker, then restart those processes.
pip install rowmonitor-airflow
Airflow 2.6 through 2.10 and Airflow 3.x load the plugin from the airflow.plugins entry point. Task-failure hooks differ: Airflow 2.10 passes an error and a session, earlier 2.x passes a session, and Airflow 3 drops the session. The plugin accepts those shapes and does not read the exception text.
A local Docker sample is in plugins/rowmonitor-airflow/examples/docker/. One compose file runs Airflow 2.10.5 by default. Set AIRFLOW_IMAGE=apache/airflow:3.4.0 for 3.x. airflow standalone starts the scheduler, and on 3.x it also starts the dag-processor and api-server. Airflow 2.10.5 was tested by a user end to end. Airflow 3.4.0 is covered by the plugin unit tests.
Environment variables
ROWMONITOR_URL— the Row Monitor origin, with no trailing path. Example:https://rowmonitor.comROWMONITOR_TOKEN— the ingest token from the deployment pageROWMONITOR_HEARTBEAT—scheduler(default),always, oroffROWMONITOR_HEARTBEAT_SECONDS— default 60, minimum 30ROWMONITOR_TIMEOUT_SECONDS— HTTP timeout, default 2, capped at 5
Restart the scheduler after setting them. Restart workers too, so task-failure events are sent.
What is sent
Metadata only:
- DAG id, run id, run type, logical date, start, end, state, duration
- On task failure: DAG id, run id, task id, try number, start, and end. Not the exception text
- A heartbeat of unpaused DAGs: dag id, schedule (cron or timetable description), and next run time when the scheduler has one
Not sent: connections, variables, XComs, logs, DAG code, or row data. The listener returns immediately and posts in a background thread. A timeout or a 401 does not fail the Airflow task.
The heartbeat is a daemon thread started when the scheduler job starts. A tiny heartbeat DAG would wait on a worker slot and would go silent if that DAG were paused, so it would look like an outage while other DAGs still ran. The thread stops when the scheduler process stops. That is the outage the product reports as one missing heartbeat, not as a late alert for every DAG.
Produces tables
- In the app, open Airflow.
- Open a DAG and set Produces tables to the monitored tables that DAG writes.
- Save. The mapping does not count toward the table limit or the DAG limit.
Airflow alerts for that DAG list those tables as Affected tables. A table alert can show Linked DAG and the last run state and time. That line is context. It does not mean the DAG caused the change. A table can also change outside Airflow.
What the check flags
- Late — a run exists and did not start within 5 minutes of the expected time
- Never arrived — the schedule expected a run and none was created. The plugin cannot see a run the scheduler never created, and it does not emit a never-started event
- Slow — duration is well above the median of at least five earlier successes
- Failed — the latest run failed
- Heartbeat missing — no heartbeat for 15 minutes. Late and never-arrived checks wait until the heartbeat returns
DAGs past the plan limit are stored and shown as over the limit. They are not checked. The request does not fail.
Troubleshooting
- 401: the token was revoked, rotated, or copied with a space. Create or rotate a token and restart the scheduler.
- No DAGs: the heartbeat has not arrived. Confirm the scheduler process was restarted and
ROWMONITOR_HEARTBEATis notoff. - Over limit: the workspace is above 5, 50, or 100 DAGs. Upgrade the workspace plan. Table limits stay 3, 50, and 500.
- Heartbeat missing, and no per-DAG late alerts: the scheduler has been quiet for 15 minutes. That is one alert on purpose.
- A paused DAG disappears from the unpaused heartbeat and is not treated as never arrived.
- Deleting the deployment, or closing the account that owns the workspace, deletes the token hash and the DAG metadata.
Questions: support@rowmonitor.com