Work · IoT · Retail cold chain

An alert that doesn't tell you where to look is just noise.

Every alert from this pipeline maps back to a specific query, a specific run, and a specific commit. Service accounts moved to key-pair auth, and every dependency finding has a documented answer.

Client
An IoT company protecting pharmaceutical cold-chain inventory across a national retail footprint
Status
Live in production
Stack
dbt · Snowflake · Datadog · Jenkins · Python
Context
The operational layer under the platform in case 01

Before

Something failed overnight. Now go find it.

A pipeline that feeds a production model has to be debuggable at 2am by whoever is on call—not just by the person who wrote it. The gap is rarely detection. It's that the alert says a run failed without saying which query, which invocation, or which change introduced it.

What we built

Alerts you can trace.

We added dbt on-run-end macros that emit structured JSON to Datadog, carrying the query_id, invocation_id, and git_sha with every event. Jenkins post-build hooks feed the same stream, so a CI failure and a warehouse failure land in one place and read the same way.

Any alert therefore resolves to three things: the query that ran, the run it belonged to, and the commit that shipped it. We also made the dbt schema tests environment-aware, so checks run appropriately strictly in production without blocking routine work in dev.

  1. 01 Structured JSON to Datadog on every dbt run
  2. 02 query_id, invocation_id, and git_sha on every event
  3. 03 Jenkins post-build hooks on the same stream
  4. 04 Environment-aware schema tests

Credential and dependency hygiene

The unglamorous half of production.

We migrated the Snowflake service accounts from password to key-pair authentication, removing a class of long-lived shared secret from the pipeline.

On the supply-chain side, we resolved a chain of CVEs across snowflake-connector-python versions—where each upgrade surfaced the next—and handled the remaining urllib3 findings with a documented .snyk ignore pattern, so a deliberate accepted risk reads differently from an unnoticed one.

We also defined an OpenAPI and MCP schema for an internal task API, so agents can call it against a declared contract rather than a scraped one.

Result

The pipeline is in production. When it breaks, the alert names the query, the run, and the commit—so the first ten minutes of an incident go to fixing it rather than locating it.

Alerts nobody trusts?

Bring the last incident and how long it took to find.

Talk to us