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

推荐订阅源

酷 壳 – 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
Understanding dbt: basics and best practices
2025-09-05 · via Datadog | The Monitor blog
Nicholas Thomson

Nicholas Thomson

Data Build Tool (dbt) is an open source analytics engineering framework that enables teams to transform raw data that has been loaded into a warehouse like Snowflake, BigQuery, Redshift, or Databricks using SQL-based workflows. dbt is available in two main forms: dbt Core, the free and open source CLI tool, and dbt Cloud, a managed platform that adds scheduling, UI support, collaboration tools, and native integrations. Both options enable teams to introduce software engineering best practices—such as version control, automated testing, data lineage tracking, documentation generation, and CI/CD—to the analytics workflow. Its model dependency graphs ensure that transformations are executed in the correct order, while built-in testing and assertions help catch data quality issues early.

By abstracting complex transformations into reusable models and integrating seamlessly with the modern data stack, dbt enables teams to build scalable, trustworthy, and auditable data pipelines. This makes dbt an increasingly popular tool for analytics engineering teams, as it helps them simplify collaborative development, improve visibility into how data flows through the system, and deliver clean, production-grade datasets for analytics and business intelligence.

In this post, we’ll show you:

How analytics engineers are using dbt

dbt allows data teams to write modular, testable SQL transformations that run directly in modern data warehouses. Using Jinja templating, dbt enables developers to inject logic such as loops, conditionals, and environment-aware parameters into their SQL models, reducing duplication and making code more reusable across datasets and environments. dbt handles compiling, dependency resolution, and execution, ensuring models run in the correct order. For example, a team might use dbt to transform raw event logs into structured, analytics-ready tables by applying consistent business logic across pipelines.

To support data quality, dbt includes built-in testing for critical fields, such as checking for null values, uniqueness, or valid categories. These automated tests catch bad data before it reaches dashboards or downstream processes. For example, running a uniqueness test on a customer_id field can prevent silent duplication in user-level reporting. Additionally, dbt supports freshness blocks to validate whether a data source has been recently updated, flagging pipelines that may be running on stale data.

dbt also brings visibility to transformation pipelines with automatic dependency tracking and lineage graphs, which can be generated with the command dbt docs generate. These graphs help teams audit data flows—such as tracing a marketing dashboard metric all the way back to raw event ingestion—improving transparency and reducing the surface area for debugging.

Finally, dbt integrates with CI/CD platforms like GitHub Actions, GitLab CI, and Apache Airflow to validate and deploy data pipelines through version control. This makes it easier for data teams to collaborate on shared models, review changes, and enforce testing before deployment, lowering the technical barrier to modern pipeline development and bringing software engineering best practices to analytics workflows.

Best practices for getting the most value from dbt

To get the most out of dbt, it’s important to structure your project for clarity, maintainability, and scale. dbt encourages a layered approach to modeling, typically broken into three logical tiers: staging, intermediate, and marts. Each layer serves a distinct purpose in the transformation pipeline, helping teams apply consistent practices as their analytics workflows grow in complexity.

Staging: normalize raw data

The staging layer is the foundation of any dbt project. These models are lightweight wrappers around raw tables—such as data from Salesforce, Stripe, or internal databases—and serve to clean and prepare source-conformed concepts for downstream usage.

To optimize the staging layer of dbt projects, organizations should:

  • Keep logic simple and single-purpose. Use staging models to rename columns, cast data types, perform basic unit conversions (e.g., cents to dollars), and apply simple categorization. Avoid joins or aggregations here to improve modularity and debuggability. When each model has a clear, narrow responsibility, it becomes easier to trace how data changes over time, write focused tests, and isolate issues when they occur. This also creates a strong foundation for reuse in downstream layers, ensuring transformations are auditable.
  • Organize by source system. Group models into folders based on their data origin (e.g., Stripe or Salesforce), not by team or business logic, so that they mirror the structure of your data warehouses, making it easier to find and maintain models. This practice also keeps business logic out of the staging layer, so the models stay reusable across teams and use cases. This improves clarity, reduces duplication, and supports a cleaner project structure as your dbt repo grows.
  • Use consistent naming. Follow the stg_<source>__<entity>s.sql convention to clearly link models to their source tables. This makes your project easier to navigate, helps enforce a shared mental model across teams, and ensures that naming reflects both the origin and purpose of each model.
  • Materialize as views. This ensures the freshest data for each run while conserving storage, since staging models are often not queried directly. Define one staging model per source. Doing so creates a clean entry point for lineage tracking and simplifies downstream debugging.

Intermediate: apply business logic

The intermediate layer transforms staging data into more business-ready forms by applying joins, filters, and calculated metrics. These models often represent relationships (e.g., orders joined to customers), key transformations (e.g., deriving active_users), or custom metrics (e.g., most_recent_subscription).

Best practices for intermediate models in dbt include:

  • Structure by domain. Organize folders based on business groupings—like billing or growth—to reflect how stakeholders think about data. This alignment makes models easier for cross-functional teams to find, understand, and reuse, since the folder structure matches how they conceptualize business problems and KPIs. It also promotes clearer ownership and collaboration, reducing friction when analysts, engineers, and decision-makers work together on shared metrics or reporting logic.
  • Name with purpose. Since these models are diverse in logic, use verbs to describe their transformation (e.g., int_orders_joined, int_users_aggregated_to_session, int_sessions_fanned_out_by_quantity). This makes it clear what each model is doing, improves readability, speeds up onboarding for new team members, and reduces cognitive load. It also encourages modularity and reuse by making each model’s role more self-evident.
  • Choose appropriate materializations. Selecting the right materialization strategy helps optimize both performance and resource usage across your dbt project. Use ephemeral for lightweight logic that doesn’t need to be saved and is used by only a few downstream models. In addition, use views in a custom schema if you want the data platform to manage refresh logic for transformations that don’t need to be persisted as tables. It’s also best to use incremental models for large or event-style datasets that are slow to rebuild fully and can be updated in chunks. Making smart choices here ensures your pipelines run faster, consume less storage, and remain easier to reason about as your project scales.
  • Re-grain strategically. Fan out or collapse data to shift granularity by, for example, converting session-level events into user-level summaries. This allows downstream models to operate at the appropriate level of detail for their use case, improving query performance, reducing unnecessary joins, and making metrics easier to interpret and compare.
  • Isolate complexity. Break apart heavy logic into multiple layers to improve modularity and downstream reusability. This makes models easier to test and maintain, reduces the risk of performance bottlenecks in large transformations, and enables faster iteration by letting developers focus on smaller, composable pieces of logic.

Marts: deliver business-ready models

The marts layer contains final models that are used directly by analysts, dashboards, and machine learning pipelines. These models should be stable, trusted, and aligned with key business entities like customers, orders, or revenue_events.

To keep marts clean and maintainable, teams should:

  • Group by stakeholder needs. Organize files and folders based on department or area of concern (e.g., finance, marketing) so that models are easier to navigate and ownership is clear.
  • Avoid duplicating business logic. Don’t create separate versions of the same model for different teams—like finance_orders and marketing_orders—as this can lead to metric drift. Use clear naming conventions. Align model names with business terms to improve discoverability and encourage reuse.
  • Materialize strategically. Use tables or incremental models when performance or scale requires it. In addition, it’s best to use wide, denormalized tables where needed to support BI tools or reduce dashboard complexity.
  • Minimize joins at the mart layer. Push complexity into intermediate models to keep marts performant and easy to reason about.

Monitor dbt jobs in production with OpenLineage

Beyond structuring models effectively, it’s equally important to monitor how your dbt jobs run in production so you can quickly detect and resolve issues. By integrating OpenLineage, an open source framework for metadata and lineage collection, you can automatically capture run-level details from your dbt jobs, such as start and end times, execution status, and upstream/downstream model dependencies and data lineage. This provides a consistent way to detect dbt pipeline failures, monitor job health, and surface anomalies before they impact business-critical dashboards. Datadog actively contributes to OpenLineage’s open source ecosystem, (e.g., structured dbt log consumption, and async HTTP transport) helping extend monitoring and observability capabilities for data pipelines. By adopting OpenLineage alongside dbt, and taking advantage of these ecosystem enhancements, you can gain deeper visibility into production runs, enabling proactive alerting, faster root-cause analysis, and more reliable analytics workflows.

Gain visibility into your dbt projects with Datadog

In this post, we’ve explored what dbt is, how it’s being used by analytics engineers, and tips for getting the most out of it. Datadog offers integrations with dbt cloud and dbt core, the capability to view dbt job execution details in context with their parent Apache Airflow tasks, as well as more forthcoming integrations to help you monitor the performance of your dbt runs, visualize model execution, and more.

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