Apache Airflow monitoring
Use scheduler and executor metrics to distinguish stalled scheduling from execution backlog.
Last updated
On this page (5)
Apache Airflow ยท Monitoring
Before you start
- StatsD collector and the Airflow StatsD extra.
- Staging DAG and known scheduler topology.
Procedure
- Set statsd_on, statsd_host, statsd_port and statsd_prefix in the metrics configuration for the deployed components.
- Graph scheduler_heartbeat alongside executor queue and running-slot metrics available in the deployed version.
- Measure a healthy heartbeat interval and queue drain time, and alert on sustained heartbeat loss or backlog rather than a single sample.
Verify the result
- The sample DAG generates scheduler and executor samples.
- Stopping a staging scheduler produces a missing-heartbeat signal; restoration resumes scheduling and the queue drains.
