DEVOPS

Open a Linear cost-RCA issue when a spend anomaly pages PagerDuty

When a cost-anomaly alert triggers a PagerDuty incident, this workflow gathers the offending service, recent deploys, and the cost delta.

CategoryDevOps
Enginesim
Difficultyintermediate
Triggerevent
Steps5
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerPagerDuty cost-anomaly incident createdPagerDutyPagerDuty
  • LogicExtract affected service and anomaly window
  • ActionFetch recent deploys and PRs for the serviceGitHubGitHub
  • LogicAssemble RCA draft and resolve owning team
  • OutputCreate assigned cost-RCA issue in LinearLinearLinear

What it does

Converts a cost-driven PagerDuty incident into a tracked remediation item. It pulls the incident's service context, fetches the recent GitHub deploys for that service, computes the suspected over-spend, and creates a Linear issue pre-populated with the timeline, suspect commits, and an owner.

When to use it

Use it when cost anomalies need to be tracked to resolution rather than just acknowledged in chat. Good for teams that run cost monitors through PagerDuty and manage engineering work in Linear.

How it works

  1. 1PagerDuty triggers the workflow when a cost-anomaly incident is created.
  2. 2The flow extracts the affected service and anomaly window from the incident payload.
  3. 3It queries GitHub for deploys and merged PRs to that service inside the window.
  4. 4A logic step assembles a root-cause draft: timeline, candidate PRs, and estimated dollar impact.
  5. 5It resolves the owning team from the service-to-team map.
  6. 6A Linear issue is created with the draft, labeled cost-rca, and assigned to that team's lead.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect PagerDutyIncidents, on-call, escalations.
  2. 2
    Connect GitHubRepos, issues, pull requests, actions.
  3. 3
    Connect LinearIssues, projects, cycles, triage.
  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.