惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏
F
Fortinet All Blogs
Blog — PlanetScale
Blog — PlanetScale
GbyAI
GbyAI
MongoDB | Blog
MongoDB | Blog
月光博客
月光博客
The Cloudflare Blog
量子位
T
Tailwind CSS Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog
MyScale Blog
MyScale Blog
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
G
Google Developers Blog
D
DataBreaches.Net
V
Visual Studio Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Last Week in AI
Last Week in AI
U
Unit 42
博客园 - 聂微东
有赞技术团队
有赞技术团队
A
About on SuperTechFans

Datadog | The Monitor blog

Introducing our open source AI-native SAST Instrument and monitor Boomi integration flows with OpenTelemetry and Datadog Not all index scans are equal: How we cut query latency by over 99% Platform engineering metrics: What to measure and what to ignore Integrate Recorded Future threat intelligence with Datadog Cloud SIEM CI/CD security: threat modeling using a MITRE-style threat matrix CI/CD security: How to secure your GitHub ecosystem Ingress NGINX is EOL: A practical guide for migrating to Kubernetes Gateway API Operating agentic AI with Amazon Bedrock AgentCore and Datadog LLM Observability: Lessons from NTT DATA Introducing the Datadog Code Security MCP Capture and analyze custom heatmaps in Session Replay Understand session replays faster with AI summaries and smart chapters Monitor ClickHouse query performance with Datadog Database Monitoring How we designed empathetic alert sounds for on-call engineers Search and act across Datadog to resolve issues faster with Bits Assistant Measure the business impact of every product change with Datadog Experiments Analyzing round trip query latency Configuring JavaScript caches for better performance Introducing Bits AI Dev Agent for Code Security Datadog achieves ISO 42001 certification for responsible AI Monitor Nutanix clusters, hosts, and VMs with Datadog Monitor Juniper Mist in Datadog A new Host Map for modern infrastructure Annotate traces to improve LLM quality with Datadog LLM Observability What’s new in Cloud SIEM: AI-powered investigations, enhanced threat intelligence, and scalable security operations Explore Kubernetes with native OpenTelemetry data Monitor Oracle Fusion Cloud Applications with Datadog Announcing the Datadog Terraform provider v4.0.0 Scaling Kubernetes workloads on custom metrics How to design cloud environments for AI-powered threat analysis
Monitor Airflow with Datadog
2025-05-13 · via Datadog | The Monitor blog

In Part 1 of this series, we discussed key metrics for monitoring Airflow. In Part 2, we discussed strategies for collecting Airflow metrics, logs, and lineage.

Finally, we will look at how you can use Datadog to monitor all this telemetry in a single consolidated view alongside telemetry from the rest of your infrastructure and services.

Monitor Airflow metrics with Datadog

Datadog’s Airflow integration enables you to ingest Airflow metrics into Datadog by using the Airflow StatsD plugin with DogStatsD. The DogStatsD mapper helps you import metric labels such as task_id and dag_id to tag your metrics with these facets in Datadog. This way, you can quickly filter your data on these tags within dashboards or monitors to streamline your troubleshooting when investigating issues such as high-latency tasks or code errors in operators.

You can visualize Airflow metrics in the out-of-the-box dashboard or form your own pipeline health dashboards to correlate metrics from all your Airflow-orchestrated services. For instance, if you are monitoring a data pipeline orchestrated by Airflow, executing Spark jobs that run on Databricks clusters, and interfacing with a Snowflake database, a data pipeline dashboard could pull in infrastructure health, throughput, and error metrics from all these services.

data-pipeline-dashboard

Datadog Monitors make it easy to set alerts on key Airflow metrics and alert engineers of emergent problems. For example, you might set an alert on the number of running tasks to help manage your concurrency limit, or alert on key operator failures to spot bugs in your DAGs. Receiving timely notifications when these problems occur helps your teams manage their impact on your production systems.

Let’s say we want to monitor whether our worker pool is utilizing its available task slots efficiently. For this, we can alert on the number of starving tasks to track situations where too many slots are in use to accommodate all the incoming tasks. By using an anomaly detection monitor, we can alert on cases where the starving task count deviates significantly from its established trend, which could indicate a lack of sufficient worker availability—as shown in the following screenshot.

airflow-monitor

To help you get started with alerting for Airflow, Datadog offers out-of-the-box monitor templates, covering DAG run duration, DAG run failures, and task instance failures. For more information about the Airflow integration, see our blog post.

Ingest Airflow logs into Datadog Log Management

By ingesting Airflow logs into Datadog Log Management, you can easily query, filter, and form metrics from them, and monitor them alongside logs from the rest of your workflows’ tech stack. Once you’ve set up the integration to ingest metrics, you can enable log collection by setting logs_enabled: true in your Agent configuration file (datadog.yaml).

Once configured, Datadog will collect Airflow logs with Log Management and display them within the Log Explorer. In a troubleshooting case, for instance, you can easily query for logs with the relevant DAG ID, operator ID, or task ID to investigate the root cause of latency or errors. Airflow traces are automatically correlated to associated logs, so you can also navigate directly from DAG run traces in APM or Data Jobs Monitoring (DJM) to quickly investigate errors or latency showing up in traces. When investigating an error in a DAG run trace, querying for related logs can reveal additional upstream problems that provide a clearer picture of the overall issue and bring your team closer to remediation.

Get insight into your Airflow pipelines with Data Jobs Monitoring

Datadog DJM enables you to proactively detect and quickly troubleshoot issues with individual DAGs. You can easily configure this using Airflow’s OpenLineage provider to send DAG run and lineage data from your task executions to DJM. This includes run-level metadata (execution time, state, parameters, etc.) as well as job-level metadata (owners, type, description, etc.).

DJM aggregates live data on each task execution for Airflow DAG runs, represented as Datadog traces. This enables you to monitor DAGs’ health and performance with granular trace analytics. To give your team timely notifications about this, you can use DJM’s Trace Analytics Monitor templates to set alerts on DAGs that fail or run for a duration beyond their SLO. You can also use DJM’s consolidated overview of DAG run performance to understand trends in DAG health and duration and discover problematic tasks. The following screenshot shows the DAG performance page in DJM.

dag-run-detail

You can filter and sort the list of runs to surface high-latency or errored task executions and then drill into traces of individual job runs to kick off root cause analysis. Waterfall graphs surface all errors from runs and correlate relevant task logs within the same view. This way, you can more easily understand the factors that may have contributed to task failures or latency without needing to open the Airflow webserver interface.

dag-trace-2

For your Airflow tasks that trigger Spark or dbt jobs, you can view Spark or dbt job run telemetry in context with the respective Airflow task automatically. This way, you can debug issues in both Airflow task executions and Spark or dbt job runs together in one interface.

Monitor your data pipelines with a single source of truth

In this post, we’ve shown how to collect telemetry data from Airflow with Datadog to monitor your workflows’ health and performance—alongside the other technologies supporting your applications. Datadog metrics monitoring, Log Management, and Data Jobs Monitoring can all work in concert to provide comprehensive visibility into your Airflow workflows.

To get started with Datadog’s Airflow integration, see the documentation. Full Airflow support within Data Jobs Monitoring is currently available in preview—you can sign up for access here. For more information about getting started with DJM, see the documentation.

If you’re brand new to Datadog, sign up for a free trial.