DEVOPS

Alert PagerDuty on Vercel build-time regression

On each successful deploy, records build duration to BigQuery and pages on-call via PagerDuty when build time spikes above the rolling average by the configured margin.

CategoryDevOps
Enginesim
Difficultyintermediate
Triggerwebhook
Steps5
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerVercel deployment succeededVercelVercel
  • ActionRecord build duration to BigQueryGoogle BigQueryBigQuery
  • ActionQuery rolling average build timeGoogle BigQueryBigQuery
  • LogicBranch on duration spike vs margin
  • OutputOpen PagerDuty incidentPagerDutyPagerDuty

What it does

This workflow watches build duration, not just bundle size. After every Vercel deploy it records the build time to BigQuery, compares it against the rolling average of recent builds for the same branch, and if the duration spikes beyond the configured margin it opens a PagerDuty incident so on-call can investigate before slow builds choke the deploy pipeline.

When to use it

Use it when build times are creeping up and starting to hurt developer velocity or CI cost, and you want a real alert (not a buried metric) the moment a deploy takes meaningfully longer than normal.

How it works

  1. 1Vercel `deployment.succeeded` webhook fires with build timing data.
  2. 2Insert the build duration, branch, and SHA into BigQuery.
  3. 3Query the rolling average build time for that branch.
  4. 4Branch: if duration exceeds the average by the margin, escalate; else stop.
  5. 5Open a PagerDuty incident with the deploy, duration, and delta details.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect VercelDeploys, runtime logs, analytics.
  2. 2
    Connect BigQueryDatasets, queries, schemas.
  3. 3
    Connect PagerDutyIncidents, on-call, escalations.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    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.