Skip to content

“When you think you know something, that is a most perfect barrier against learning.”

Frank Herbert, God Emperor of Dune

Dex Telemetry

Open-source Datadog for analytics.

You set up analytics to monitor your business. But who’s monitoring your analytics?

The imperial records / 01

300 nights of spice shipments. The Emperor remembers them all, thanks to Dex.

Spice ships

100 t booked

His pipeline

Runs at 04:00

His report

100 t

Every run, every rule, every arrival time: all in his repo, where his agents can read it. The spice must flow.

Night 001Night 300

Recorded by Dex

The imperial records / 02

04:00

Night 300

A storm grounds the Ithaca ship. The pipeline runs without it.

Arrakis spaceport

40 t grounded

The Ithaca ship waits out the storm.

Data pipeline

Run succeeded

Nothing looks wrong.

His report, at dawn

60 t ▼ 40%

If nobody catches it.

At dawn, his report would say spice fell 40%.

But, Ithaca’s 40 t are still on the ground on Arrakis.

The crew risks being fired over something out of their control.

The imperial records / 03

04:01

Night 300

Nothing looked wrong, but Dex saw what was missing.

Dex remembered: on 299 nights, the Ithaca ship’s record arrived by 03:05. Tonight: nothing!

When Ithaca’s record arrived

299 NIGHTSReport runsTonight: nothing!00:0002:0004:0006:00

Incident · opened by Dex · 04:01

His rule
Every ship booked tonight appears in the report, even if it’s late.
Missing
Ithaca’s 40 t.
Next
An agent of the Emperor picks up the incident.

The imperial records / 04

06:31

Night 300

While the Emperor slept, his agents worked.

THE EMPEROR’S AGENT · USING DEX
  1. 04:01Picks up the incident.
  2. 04:06Finds the cause: the storm grounded the Ithaca ship.
  3. 04:10Writes a fix: wait for late records, then rebuild.
  4. 06:10The storm passes. Ithaca’s record arrives.
  5. 06:31ApprovedThe Emperor reads the fix and approves it.

His report, at dawn

100 t

Rebuilt. Every ship counted.

Ithaca’s crew

The crew stays.

The ship delivered its 40 t.

The imperial records / 05

06:30

Night 300

Without Dex, the Emperor reads the wrong report.

His morning report, without Dex

Spice shipped tonight
60 t ▼ 40%
The Ithaca ship’s delivery
0 t
Pipeline run
Succeeded

Order · signed

Fire Ithaca’s crew.

Delivered nothing tonight.

Signed · 06:31

He fires the crew of a ship that actually delivered.

01 / 05

Illustrated workflow · synthetic Arrakis data

How Dex Telemetry works

Open source, built on dbt and Elementary.

  1. 1

    Install

    Run dex init on your pipeline.

    dex init

  2. 2

    Set rules

    Write down what must be true.

    transform plan

  3. 3

    Watch

    Dex checks every run and keeps every result.

    maintain incidents

  4. 4

    Investigate

    Your agents find the cause.

    maintain diagnose

  5. 5

    Approve

    Nothing changes until you say yes.

    transform apply

Datadog, for your analytics.

The same ideas that watch your app, applied to the pipeline your reports depend on.

Datadog concepts and their Dex Telemetry equivalents
Datadog, for your appDex Telemetry, for your analytics
Install the agent on every hostdex init sets up monitoring
Metrics and heartbeat historyEvery run recorded, in your repo
MonitorsYour rules become checks on every run
IncidentDex opens an incident; your agents are sent to it
Root causeThe agent traces it to its cause
(no equivalent)The fix, as a plan you approve

What it does.

Run history

Elementary, installed by dex init

dex init adds the Elementary package to your dbt project, disabled on the dev target, so every production run uploads its test results. --no-elementary leaves it out.

Monitors

Your declarations become monitors

With monitors.vendor set to elementary, declared time columns write volume and freshness anomaly monitors, small-domain dimensions write dimension anomaly monitors, and a declared population filter becomes each monitor's where clause, so it measures only the rows the model promises.

Incidents

One rule turns failures into incidents

dex maintain incidents reads Elementary's run history and dbt's run_results.json and folds both through one lifecycle rule: an observed failure opens or extends an incident, two consecutive observed passes close it. A run that recorded nothing is never read as a pass.

Diagnosis

From incident to cause

dex maintain diagnose bisects each open incident between the last good run and the first bad one, using the committed snapshot series and the commit range. It confirms the cause, such as a source whose rows landed after the run read them, or a key the loader delivered twice, and hands the repair to transform as a plan.

Impact

Which metrics read the broken column

Each incident names the semantic models and metrics that read the column under test, so you know which reports to hold.

Privacy

No samples of personal data

Columns Dex marks as personal data are tagged so Elementary keeps no sample of them. Incidents carry ids, statuses, counts, times and commits; no value crosses into one.

Private by design

Your telemetry never leaves home.

Dex Telemetry watches your pipelines, not you. Run history, rules and incidents live in your warehouse, your repository and .dex/, where your agents can read them. Nothing is sent to Exmergo.

  • No Exmergo account

    Install it into the agent you already use and run it on your own credentials.

  • No Exmergo server

    Every check runs between your agent, your warehouse and your repository.

  • No usage reporting

    No analytics, no license check, no update ping. Dex sends nothing home.

Try it offline.

dex demo seeds a small dbt project with the history of its builds in Elementary's tables, in which one test starts failing. Every query runs against a local DuckDB file: no warehouse, no credentials.

dex: demo_project
  1. # install the engine

    uv tool install "exmergo-dex-core[duckdb]"

  2. # warehouse, dbt project and run history

    dex demo

  3. # the incidents the run history holds

    dex maintain incidents

  4. # each open incident, taken to a cause

    dex maintain diagnose

Dex Telemetry: frequently asked questions

Q01What is Dex Telemetry?

Dex Telemetry is open-source monitoring for your analytics, like Datadog for your data pipelines. dex init adds the Elementary package to your dbt project so every run records its test results; the rules you declare on your models become tests and anomaly monitors; and dex maintain incidents folds the run history into incidents. Your coding agent picks an incident up with dex maintain diagnose, and any fix comes back as a plan that changes nothing until you approve it. It is built on dbt and Elementary.

Q02Does Dex Telemetry send data or usage to Exmergo?

No. The run history, rules and incidents Dex Telemetry reads live in your warehouse, your repository and its .dex/ folder. Like the rest of Dex, it has no Exmergo account, no Exmergo server and no usage reporting; telemetry here means monitoring your own pipelines, not reporting on you.

Q03Do I need Elementary?

It is recommended, and dex init installs it for you. Without it, dex maintain incidents still reads dbt's run_results.json, but that file holds one invocation, so an incident read from it alone has no history to say when it started. With Elementary, Dex reads the newest 20 invocations by default, up to 2000, and prices the read before it runs.

Q04How does Dex decide an incident is over?

One rule, in the engine: an observed failure opens an incident or extends the open one, and two consecutive observed passes from the source that opened it close it, so a test that flaps stays one incident. A run that recorded nothing neither opens nor closes an incident. A check that stops running ends as no_longer_observed, never as closed.

Q05What can dex maintain diagnose find?

It bisects each open incident between the last observed-good run and the first observed-bad one, bounded by the committed maintain snapshot series and the commit range. Each candidate cause is tested by a check Dex already has, such as a source whose rows arrived after the run that read them (the late ship in the story) or a key the loader delivered twice, and a confirmed cause's repair comes back from /dex:transform as a reviewable plan.

Install

The Emperor remembers every night. Do you?

Dex Telemetry is part of Dex: free and open source under Apache 2.0.

npx skills add exmergo/dex

Codex, Gemini CLI, Cursor, and others, via AGENTS.md.