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

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hacker News: Front Page
P
Palo Alto Networks Blog
T
ThreatConnect
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
T
True Tiger Recordings
P
Privacy & Cybersecurity Law Blog
B
Blog
IT之家
IT之家
Last Week in AI
Last Week in AI
F
Full Disclosure
Hacker News: Ask HN
Hacker News: Ask HN
C
Comments on: Blog
Microsoft Azure Blog
Microsoft Azure Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
N
News and Events Feed by Topic
NISL@THU
NISL@THU
腾讯CDC
雷峰网
雷峰网
Security Latest
Security Latest
李成银的技术随笔
M
Microsoft Research Blog - Microsoft Research
L
LangChain Blog
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Check Point Blog
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
博客园 - Franky
N
News | PayPal Newsroom
V
V2EX
A
About on SuperTechFans
The Register - Security
The Register - Security
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google Online Security Blog
Google Online Security Blog
MyScale Blog
MyScale Blog
Cisco Talos Blog
Cisco Talos Blog
Vercel News
Vercel News
WordPress大学
WordPress大学
C
Cyber Attacks, Cyber Crime and Cyber Security
The Hacker News
The Hacker News
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
爱范儿
爱范儿
A
Arctic Wolf
L
LINUX DO - 最新话题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

Datadog | The Monitor blog

Reduce CVE noise with OpenVEX assessments in Datadog How we made a SQL query optimization agent 59% more accurate using autoresearch and LLM Observability How to audit and clean up monitors effectively Diagnose slow PostgreSQL queries faster with explain plan correlation Explore Datadog metrics with Natural Language Queries Toto 2.0: Time series forecasting enters the scaling era Simplify micro-frontend observability with Datadog RUM Attribute AI costs across providers with Datadog Cloud Cost Management Diagnose and resolve database performance issues faster with Database Investigator Datadog for Government achieves FedRAMP® High certification Analyze cloud costs with flexible spreadsheets in Datadog Sheets Inside Datadog’s AI Research Lab: Meet two PhD candidates behind Toto Connect triage and investigation in a single workflow with Datadog Cloud SIEM This Month in Datadog - April 2026 Monitor and optimize Supabase query performance with Datadog Database Monitoring Add dynamically updating context to logs with Reference Tables and Observability Pipelines Introducing ARFBench: A time series question-answering benchmark based on real incidents The product signal latency gap slowing your growth Test network paths with TCP, UDP, and ICMP in Datadog Turn developer feedback into operational insight with Datadog Forms and Sheets How to investigate cloud credential compromise with Bits AI Security Analyst Evaluate, optimize, and secure your Google Cloud AI stack with Datadog Bringing observability data hosting to the UK on AWS Identify and fix code issues faster with Datadog’s Azure DevOps Source Code integration Steganography at scale: Embedding share URLs in Datadog widget screenshots Every team should be A/B testing Centralize observability management with Datadog Governance Console Spotting CI/CD misconfigurations before the bots do: Securing GitHub Actions with Datadog IaC Security Route OTel data from AI apps to ClickHouse and Datadog using Observability Pipelines Manage service tracing across hosts with Single Step Instrumentation rules Offline evaluation for AI agents: Best practices Detect runtime threats in Python Lambda functions with Datadog AAP 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 How we built a real-world evaluation platform for autonomous SRE agents at scale 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 When upserts don't update but still write: Debugging Postgres performance at scale 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 Closing the verification loop: Observability-driven harnesses for building with agents When an AI agent came knocking: Catching malicious contributions in Datadog’s open source repos Closing the verification loop, Part 2: Fully autonomous optimization 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 Designing MCP tools for agents: Lessons from building Datadog's MCP server 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 Fine-tune Toto for turbocharged forecasts 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 How we reduced the size of our Agent Go binaries by up to 77% 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
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.