Skip to main content

🔗 dbt-correlator

Accelerate dbt incident resolution with automated correlation

PyPI version codecov Python Version License


What It Does

Eliminates manual detective work when dbt tests fail:

  • Automatically links test failures to the job runs that caused them
  • Provides direct navigation from incident to root cause
  • Eliminates context switching across multiple tools
  • Works with your existing OpenLineage infrastructure

Quick Start

# Install
pip install correlator-dbt

# Configure endpoint
export CORRELATOR_ENDPOINT=http://localhost:8080/api/v1/lineage/events

# Run dbt tests with correlation
cd your-dbt-project
dbt-correlator test

# Or run dbt models with lineage tracking
dbt-correlator run

# Or run dbt build (models + tests combined)
dbt-correlator build

That's it. Your test results and lineage are now being correlated.


How It Works

dbt-correlator wraps dbt commands and emits OpenLineage events with lineage and test results:

  1. START - Emits job start event
  2. Execute - Runs dbt test, dbt run, or dbt build
  3. Parse - Extracts results from dbt artifacts
  4. Emit - Sends lineage + test events in single batch HTTP POST
  5. COMPLETE/FAIL - Emits job completion event

See Architecture for technical details.


Why It Matters

The Problem: When dbt tests fail, teams spend significant time manually hunting through logs, lineage graphs, and job histories to find the root cause.

What You Get: Stop the manual detective work. dbt-correlator automatically connects your dbt test failures to their root cause, putting you in control of incidents instead of reacting to them.

Key Benefits:

  • Faster incident resolution: Automated correlation reduces time spent investigating
  • Eliminate tool switching: One correlation view instead of navigating multiple dashboards
  • Instant root cause: Direct path from test failure to problematic job run
  • Zero-friction setup: Add one command after dbt test

Built on Standards: Uses OpenLineage, the industry standard for data lineage. No vendor lock-in, no proprietary formats.

What Makes This Different: dbt-correlator is purpose-built for incident correlation, not just lineage tracking. It's optimized for faster execution and designed to grow with your dbt workflows as your needs evolve.


Versioning

This package follows Semantic Versioning with the following guidelines:

  • 0.x.y versions (e.g., 0.1.0, 0.2.0) indicate initial development phase:

    • The API is not yet stable and may change between minor versions
    • Features may be added, modified, or removed without major version changes
    • Not recommended for production-critical systems without pinned versions
  • 1.0.0 and above will indicate a stable API with semantic versioning guarantees:

    • MAJOR version for incompatible API changes
    • MINOR version for backwards-compatible functionality additions
    • PATCH version for backwards-compatible bug fixes

The current version is in early development stage, so expect possible API changes until the 1.0.0 release.


Documentation

For detailed usage, configuration, and development:


Requirements

  • Python 3.9+
  • dbt-core 1.0+ (tested with dbt 1.10+)
  • Correlator

dbt Artifact Compatibility:

  • run_results.json: Schema v5+ (dbt 1.0+)
  • manifest.json: Schema v11+ (dbt 1.5+)

Links


License

Apache 2.0 - See LICENSE for details.

Metadata

Release files for correlator-dbt 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for correlator-dbt 0.1.1
File Size Uploaded
correlator_dbt-0.1.1.tar.gz 196.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for correlator-dbt 0.1.1
File Interpreter ABI Platform
correlator_dbt-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 230.3 kB

Release files / correlator_dbt-0.1.1.tar.gz

Download URL correlator_dbt-0.1.1.tar.gz
Size 196.6 kB
Tags Source
SHA-256 checksum
How to use checksums
bacdc57ae1f87c4f2c6439e8bf14f7eeb846db3290eacd577e232d4ea2b2a00a
BLAKE2b-256 checksum
How to use checksums
f50d3a4ea966727fdf894e5de4f9858e0b15005125d0b2af48a8177d93c37806
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / correlator_dbt-0.1.1-py3-none-any.whl

Download URL correlator_dbt-0.1.1-py3-none-any.whl
Size 33.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
41dd803c36b9cf7707891cb98439d0f06f0d55e4fec62bd6e703fada61f51550
BLAKE2b-256 checksum
How to use checksums
591e5aa01acc8da14a414cd20d24bb84ae7429b61a2818da8537a1225d7dc97f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page