DATA OPS

Reverse-ETL sync-lag SLA monitor with escalation

On a schedule, measures the lag between the latest BigQuery load timestamp and the latest synced timestamp in Salesforce, emits the gap as a Datadog metric.

CategoryData Ops
Enginesim
Difficultyintermediate
Triggerschedule
Steps6
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerSchedule every 15 minutes
  • ActionRead latest source load timestamp from BigQueryGoogle BigQueryBigQuery
  • ActionRead latest synced timestamp from SalesforceSalesforce
  • ActionEmit freshness lag as a Datadog gauge metricDatadogDatadog
  • LogicBranch when lag exceeds the SLA threshold
  • OutputOpen a PagerDuty incident with lag detailsPagerDutyPagerDuty

What it does

Most reverse-ETL tooling reports "sync succeeded" even when the data it pushed is hours behind the warehouse. This workflow measures actual data freshness: it reads the maximum updated-at timestamp from the BigQuery source table and the maximum synced timestamp landed in Salesforce, computes the lag, and ships it as a Datadog gauge so you get history, dashboards, and anomaly detection. When the lag crosses your SLA, it opens a PagerDuty incident so on-call can intervene before reps act on stale records.

When to use it

Use it when sync freshness is operationally critical and you already run on-call rotations. It treats data lag like any other production SLO rather than something you discover from an angry sales manager.

How it works

  1. 1A frequent schedule (e.g. every 15 minutes) triggers the check.
  2. 2Read the latest source load timestamp from BigQuery.
  3. 3Read the latest synced timestamp from Salesforce.
  4. 4Compute the freshness lag and emit it as a Datadog metric.
  5. 5Branch: if lag exceeds the SLA threshold, escalate.
  6. 6Open a PagerDuty incident with the measured lag and affected object.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect BigQueryDatasets, queries, schemas.
  2. 2
    Connect SalesforceAccounts, opportunities, cases.
  3. 3
    Connect DatadogMetrics, traces, log search.
  4. 4
    Connect PagerDutyIncidents, on-call, escalations.
  5. 5
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  6. 6
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  7. 7
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.