DEVOPS

Orphaned Preview-Namespace Reaper with Cost Threshold Paging

Scans cloud preview namespaces for ones with no recent activity, and when their combined spend crosses a threshold.

CategoryDevOps
Enginesim
Difficultyadvanced
Triggerschedule
Steps6
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerDaily schedule fires
  • ActionList preview namespaces + cost/activityShell
  • LogicFilter idle; sum cost vs threshold
  • ActionPage on-call to approve teardownPagerDutyPagerDuty
  • ActionTear down approved idle namespacesShell
  • OutputResolve incident + post reclaimed costSlack

What it does

Inspects ephemeral preview namespaces/buckets, flags those with no traffic or writes past a quiet period, and sums their ongoing cost. When idle spend crosses a budget threshold it escalates to the on-call engineer via PagerDuty rather than silently deleting, then tears down on approval.

When to use it

Use when forgotten preview stacks are quietly burning real money and you want a human gate keyed to cost, not just age. Suited to teams with a budget line for ephemeral infra and an on-call rotation that owns spend.

How it works

  1. 1A daily schedule starts the sweep.
  2. 2Use a shell step to list preview namespaces and pull each one's last-activity timestamp and accrued cost.
  3. 3A filter keeps namespaces idle beyond the quiet period.
  4. 4A logic step sums idle cost; if it exceeds the threshold, trigger a PagerDuty incident to the on-call owner with the list and an approve link.
  5. 5On acknowledgement/approval, run the teardown shell step to delete the idle namespaces.
  6. 6Resolve the PagerDuty incident and post the reclaimed-cost total to Slack.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect ShellRun sandboxed commands inside the workspace.
  2. 2
    Connect PagerDutyIncidents, on-call, escalations.
  3. 3
    Connect SlackChannels, DMs, threads, mentions.
  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.