Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

sqlmesh-observability

Elementary-style data observability for SQLMesh projects. It installs as a package next to SQLMesh, is enabled from config.py, and needs no changes to SQLMesh itself.

Status: pre-alpha. Expect breaking changes before 1.0. Requires Python 3.9 or newer and a SQLMesh release with the execution-observation API (added after v0.236.4).

What it does

  • Logs every run. Each plan and run writes its model runs and audit results to an observability schema in your warehouse, keyed by model version.
  • Gates on anomalies. volume_anomaly, freshness_anomaly, and column_anomaly are SQLMesh audits that compute history from your data and can block a plan before promotion.
  • Watches passively. It records row counts, freshness lag, column null rates and means, and schema changes on every run, and scores them for anomalies when you read them.
  • Reports. sqlmesh-observe report writes an offline HTML dashboard of what is in prod, and sqlmesh-observe serve serves the same dashboard as a read-only web app.
  • Alerts. sqlmesh-observe monitor sends one grouped message per model owner for new prod failures and anomalies, through your own notification target.

Quick start

pip install sqlmesh-observability
pip install "sqlmesh-observability[serve]"   # optional: the web app
# config.py
from sqlmesh.core.config import Config
from sqlmesh_observability import install

config = install(
    Config(...),
    "warehouse",                                    # gateway that holds the log
    monitors={"volume": True, "schema": True},      # optional passive monitors
)
sqlmesh plan                                # unchanged; the log is written as it runs
sqlmesh-observe report -o report.html       # open the dashboard
sqlmesh-observe init-audits                 # optional: add the anomaly audits to the project

See Getting started for installation and a full walkthrough.

Docs site and live demo report: https://w4n2.github.io/sqlmesh-observability/

Documentation

Guide Covers
Getting started Requirements, installation, first report
Configuration Every install() argument, and what install() changes
CLI reference init-audits, report, serve, monitor
Anomaly audits volume_anomaly, freshness_anomaly, column_anomaly
Passive monitors Volume, freshness, schema, and column metrics, and how they are scored
Report and app What the dashboard shows, scope, and deploying serve
Alerts monitor, notification targets, grouping, and delivery
Warehouse tables The tables the package writes, and their columns
Known limitations What isn't covered yet

How it works

install() adds a notification target and wraps the SQLMesh console's execution observer, on that instance only. It never replaces the console and never writes SQLMesh state. As SQLMesh works, the observer copies plain facts (model, version, interval, audit result). When each plan or run finishes, they are written to the package's own tables. The read side (report, serve, monitor) joins those rows to SQLMesh state, so a version built in dev and promoted to prod counts as prod, and a dev-only failure never shows up in prod.

Development

python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
scripts/ci.sh                             # everything a change must pass

scripts/ci.sh runs, in order:

  • the search guards;
  • ruff, the format check, and mypy;
  • a Python 3.9 syntax check;
  • the test suite, against the installed SQLMesh and against SQLMesh main.

tests/test_e2e.py runs one prod-shaped history through every part of the package. docs/verification.md maps each SQLMesh behavior the package depends on to the test that pins it. See CONTRIBUTING.md for commit rules and AGENTS.md for guidance aimed at coding agents.

License

Apache License 2.0. See LICENSE and NOTICE.

Metadata

Release files for sqlmesh-observability 0.1.0a4

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

Source distribution (sdist)

Source distribution for sqlmesh-observability 0.1.0a4
File Size Uploaded Provenance Actions
sqlmesh_observability-0.1.0a4.tar.gz 161.3 kB With provenance Details for sqlmesh_observability-0.1.0a4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sqlmesh-observability 0.1.0a4
File Interpreter ABI Platform Actions
sqlmesh_observability-0.1.0a4-py3-none-any.whl Python 3 none any Details for sqlmesh_observability-0.1.0a4-py3-none-any.whl

Total release size: 256.7 kB

Release files / sqlmesh_observability-0.1.0a4.tar.gz

Download URL sqlmesh_observability-0.1.0a4.tar.gz
Size 161.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b3a61443b5e9d1429f36d5e658307b874285ebb867bf5dd75f798471edfa4a09
BLAKE2b-256 checksum
How to use checksums
90eab9822c7de4c0308355b19f8e4c3dc4de35638838ab06f8a8eb0c26c2b5c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / sqlmesh_observability-0.1.0a4-py3-none-any.whl

Download URL sqlmesh_observability-0.1.0a4-py3-none-any.whl
Size 95.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d43778120b83bfbf402fd09709790f50e6eba6e998bc8e56d1145997dd1631b3
BLAKE2b-256 checksum
How to use checksums
e5eaaaf5cf6edf92ce938ac7de398e7fd091bfbbe1ef6751688b69de511482b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Security for sqlmesh-observability 0.1.0a4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sqlmesh_observability-0.1.0a4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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