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

推荐订阅源

WordPress大学
WordPress大学
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 三生石上(FineUI控件)
雷峰网
雷峰网
爱范儿
爱范儿
P
Proofpoint News Feed
Security Archives - TechRepublic
Security Archives - TechRepublic
Latest news
Latest news
The Hacker News
The Hacker News
Cyberwarzone
Cyberwarzone
博客园 - 【当耐特】
Project Zero
Project Zero
小众软件
小众软件
T
Tailwind CSS Blog
量子位
博客园 - 聂微东
I
Intezer
美团技术团队
S
SegmentFault 最新的问题
T
Tor Project blog
Spread Privacy
Spread Privacy
V
Vulnerabilities – Threatpost
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Jina AI
Jina AI
罗磊的独立博客
B
Blog RSS Feed
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
T
Troy Hunt's Blog
有赞技术团队
有赞技术团队
Google DeepMind News
Google DeepMind News
宝玉的分享
宝玉的分享
C
Cisco Blogs
L
LINUX DO - 热门话题
Last Week in AI
Last Week in AI
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
AI
AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Microsoft Azure Blog
Microsoft Azure Blog
L
LINUX DO - 最新话题
Know Your Adversary
Know Your Adversary
GbyAI
GbyAI
Engineering at Meta
Engineering at Meta
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Recent Commits to openclaw:main
Recent Commits to openclaw:main
L
Lohrmann on Cybersecurity
The Register - Security
The Register - Security
L
LangChain Blog
博客园 - 叶小钗
T
Tenable Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC

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 Aruba Central in Datadog How we centralize and remediate risks with Datadog Case Management Accelerate incident response with Datadog and ServiceNow Monitor your application and network load balancer logs Understanding Karpenter architecture for Kubernetes autoscaling Tools for collecting metrics and logs from Karpenter Monitor Karpenter with Datadog What your product data is actually saying Key metrics for monitoring Karpenter Securing Datadog’s platform in the AI age: The role of observability data Four ways engineering teams use the Datadog MCP Server to power AI agents Approaching your observability migration with the right mindset Meet the new Bits AI SRE: Deeper reasoning, twice as fast Key learnings from the 2026 State of DevSecOps study Use plain English to query your multi-cloud infrastructure in Resource Catalog Simplifying troubleshooting across the user journey with Datadog Synthetic Monitoring Protect your OCI resources with Datadog Cloud Security This Month in Datadog - February 2026 Amazon EC2 security: How misconfigured and public AMIs expand your cloud attack surface Enable end-to-end visibility into your Java apps with a single command Measure and improve mobile app startup performance with Datadog RUM Evaluating our AI Guard application to improve quality and control cost Identify untested code across every level of your codebase Make use of guardrail metrics and stop babysitting your releases Monitor Versa Networks SD-WAN performance in Datadog Improve performance and reliability with APM Recommendations Remediate transitive vulnerabilities faster with Datadog Software Composition Analysis Generate audit-ready vulnerability and compliance reports with Datadog Sheets Monitor Fortinet FortiManager performance in Datadog Improve test coverage across codebases with Datadog Code Coverage Move fast, don’t break things: Consistent testing standards at scale Enrich logs with ServiceNow CMDB context before routing to any SIEM or logging tool Monitor Lustre with Datadog Make faster, better product decisions with Datadog Product Analytics Surface and remediate runtime posture issues with Workload Protection Findings Protect agentic AI applications with Datadog AI Guard How to optimize JavaScript code with CSS Trace Google Pub/Sub workloads in Cloud Run with Datadog Detect human names in logs with ML in Sensitive Data Scanner How we cut our NLQ agent debugging time from hours to minutes with LLM Observability Debug PostgreSQL query latency faster with EXPLAIN ANALYZE in Datadog Database Monitoring Datadog acquires Propolis Unify and correlate frontend and backend data with retention filters Scale compliance across global frameworks with Datadog Cloud Security Monitor Arista VeloCloud SD-WAN performance with Datadog Building reliable dashboard agents with Datadog LLM Observability Simplify log collection and aggregation for MSSPs with Datadog Observability Pipelines Mitigation for Node.js denial-of-service vulnerability affecting Datadog APM Automate flaky test fixes with the Bits AI Dev Agent and Test Optimization How we built an AI SRE agent that investigates like a team of engineers Datadog integrations 2025 recap: Observability for AI, security, and hybrid cloud Design effective executive dashboards with Datadog Implement dbt data quality checks with dbt-expectations Bring faster visibility into AWS Lambda functions with remote instrumentation Troubleshoot faster with the GitLab Source Code integration in Datadog How Cambia Health Solutions saved $30,000 monthly with Cloud Cost Management and the Datadog Resource Catalog Normalize any logs for Cloud SIEM with Datadog's OCSF processor Optimizing Datadog at scale: Cost-efficient observability at Zendesk Detect, diagnose, and resolve network issues easily with CNM Network Health Connect engineering errors to user impact in early-stage products Cilium configuration for Kubernetes operations at scale Designing feedback loops for progressive delivery Ship features faster and safer with Datadog Feature Flags Choosing the right OpenTelemetry Collector distribution Route your monitor alerts with Datadog monitor notification rules Automate Cloud SIEM investigations with Bits AI Security Analyst Cloud threat detection: How to identify risky activity across control and data planes Collecting Kafka performance metrics Monitoring Kafka with Datadog Monitoring Kafka performance metrics
How to monitor Airflow metrics, logs, and lineage
2025-05-13 · via Datadog | The Monitor blog
Thomas Sobolik

Thomas Sobolik

In Part 1 of this series, we looked at key Airflow metrics to monitor. Now, we’ll explore how you can collect those metrics, along with logs and traces, using Airflow’s native tooling. We’ll also look at a few key ways you can monitor this data from within the Airflow webserver interface.

Collect Airflow metrics

Airflow allows you to send metrics to StatsD or OpenTelemetry for ingestion into your monitoring service. You can configure the ingestion to send or block only metrics in the following categories:

  • scheduler
  • executor
  • dagrun
  • pool
  • triggerer
  • celery

This helps you customize your metrics intake to remove unwanted data, reduce noise, and save on intake costs for the managed services in your monitoring stack. For example, you won’t want to send Celery metrics if you’re using the KubernetesExecutor, or triggerer metrics if you aren’t using any deferrable operators.

Some Airflow metrics include labels, such as job_id, task_id, dag_id, or operator_name, to provide additional context for troubleshooting. For instance, by collecting operator.failures.<operator_name>, you can track the failures of particularly important operators that are widely used across your DAGs and understand which ones are failing the most.

You can use the Airflow webserver interface to monitor Airflow metrics and health signals in a number of ways using a suite of included views and visualizations. The Cluster Activity View breaks down DAG run and task instance states (i.e., succeeded, failed, or queued) and shows the health of components including the triggerer, scheduler, and metadata database.

cluster-activity

The Grid View lists DAG runs alongside their latencies and statuses. You can also use this view to drill into these metrics for specific task runs.

dag-detail

By using the Graph View, you can visualize the dependencies of your DAGs and spot latency and errors within them. For instance, the following screenshot shows the dependencies for the get_astronauts DAG, which contains two tasks: one that loads data about astronauts from a public dataset via an API, and another that processes and returns this data. If we see issues in either of these tasks, we can correlate them with event logs for task instances that accessed the database and look for underlying errors.

graph-view

Finally, using the Gantt Chart helps you break down DAG run duration by task to spot the most significant sources of latency. For instance, you might see tasks spending an unusual amount of time in the queued state, which could suggest scheduling difficulties. You might see multiple tasks running concurrently for long periods of time, which could indicate throttling. Or, you might spot a single task taking an unusual amount of time to execute, which may reveal an opportunity for code optimization.

gantt-chart

Logging DAG runs and Airflow component activity

By collecting logs from Airflow, you can more effectively troubleshoot and debug latency and errors in your pipelines. By default, Airflow writes logs to local file storage and the command line. You can use task handlers to enable writing Airflow logs to various cloud storage solutions, including Amazon S3, Azure Blob Storage, and Google Cloud Storage Buckets.

Airflow recommends FluentD as a logging solution for production workloads. FluentD is a simple, open source solution for adding a unified routing interface for log collection across multiple disparate sources. Using FluentD or a similar log collection service helps you more easily tune your log collection to reduce noise in your logs.

Next, we’ll discuss the two main log types—component logs and task logs—and explore what kinds of information you can glean from collecting them.

Component logs

Component logs record the activity of components, such as the scheduler, triggerer, and DAG processor. Airflow generates these component logs automatically, and you can configure them using the standard Python logging library’s filters and formatters. Many component logs are mostly useful for pre-production testing and debugging. To monitor a production Airflow system, logs should be collected for the scheduler and worker.

Next, we’ll talk about the kinds of data you can access by collecting scheduler and worker logs.

Scheduler logs

Scheduler logs contain critical information about the state of your task queue and the performance of DAG runs. The scheduler logs key Airflow runtime events, including:

  • Routine DAG parsing to check for code changes
  • Adding tasks to the queue and sending tasks to be executed
  • Marking task instance successes and failures following execution

Collecting scheduler logs can help you troubleshoot issues with orphaned task cleanup, resource overconsumption in the scheduler, and other common scheduler problems.

Worker logs

Worker logs capture information about the runtimes of worker processes as tasks are submitted, run, and cleaned up. The worker pool logs key events such as:

  • Starting and stopping the worker process
  • Fetching a task from the queue to execute
  • Beginning and completing execution of a task
  • Any errors or exceptions that occurred during task execution

Collecting worker logs can help you diagnose task failures, spot mishandled zombie tasks, troubleshoot issues with workers going down or getting stuck due to resource overconsumption, and more.

Task logs

Task logs record data for specific DAG runs, enabling you to troubleshoot failed or retried task instances. Most operators include logging out of the box. By collecting these logs, you can trace the underlying causes of errors more quickly. The following example shows an error log for a PythonOperator task execution.

import logging

from airflow.decorators import task

task_logger = logging.getLogger("airflow.task")

@task.external_python(python='/path/to/python')

def my_task(param1, param2):

# task code here

task_logger.error("This log records an error")

You can also write logs in your custom operators and tasks to ensure that these are also adequately monitored. To view task logs, you can select the corresponding task instance from the Airflow web UI’s Graph View for the corresponding DAG run and view that instance’s logs. For example, the following screenshot shows error logs for the get_total_earnings task of a failed prepare_earnings_report DAG run. We can see the full stacktrace for the error as well as task run logs showing how the system handled it.

task-logs

Track Airflow data lineage with OpenLineage

Data lineage is a common method for tracing the activity of data pipelines. Lineage records the flow of data over time by creating events that record metadata for each pipeline step. This facilitates the mapping of dependencies in the data pipeline and provides tools for debugging data quality issues.

OpenLineage is a popular open-source solution for data lineage. Airflow includes an OpenLineage provider that enables you to send lineage events for task executions to record run metadata—including job start and end times, succeeded, failed, and paused states, etc.—and job metadata, such as data inputs and outputs, dataset names and namespaces, and job run context. This way, you can maintain a record of DAG activity that includes all data transformations made by your tasks, which can be monitored to spot points of failure in your pipeline and debug data processing errors.

You can configure the OpenLineage provider for your DAGs simply by installing the apache-airflow-providers-openlineage package and providing a Transport configuration in your airflow.cfg file, as shown in the following code snippet.

[openlineage]

transport = {"type": "http", "url": "http://example.com:5000", "endpoint": "api/v1/lineage"}

Many common Airflow operators are already set up to produce lineage data for OpenLineage instrumentation, including PythonOperator, BashOperator, SQLExecuteQueryOperator, various AWS, dbt, and Spark operators, and more. You can also collect lineage from your custom operators and PythonOperator by using hooks in Airflow 2.10+. You will need to set up a backend to store the lineage data and a frontend to visualize it. Marquez is a popular open source solution for this, or you can use a monitoring platform like Datadog. We’ll discuss this further in Part 3.

Monitor metrics, logs, and traces for your Airflow deployment

In this post, we looked at how you can use Airflow’s native monitoring tools to collect metrics, logs, and traces to monitor the health and performance of your Airflow pipelines. In Part 3, we’ll show how you can use Datadog’s Airflow integration, Log Management, APM, and Data Jobs Monitoring to get comprehensive visibility into Airflow.