ENGINEERING

Auto-disable a risky feature flag via Cloudflare when budget burns

When a Honeycomb burn alert ties budget loss to a specific feature, it flips that feature's flag off through a Cloudflare KV killswitch and logs the action to a Postgres audit…

CategoryEngineering
Enginesim
Difficultyadvanced
Triggerwebhook
Steps5
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerHoneycomb burn alert with feature tagHoneycomb
  • LogicConfirm kill threshold and resolve flag key
  • ActionSet flag off in Cloudflare KV killswitchCloudflareCloudflare
  • ActionInsert audit row into PostgresPostgreSQLPostgres
  • OutputAlert team in Slack with feature + impactSlack

What it does

This workflow connects an SLO burn alert to an automatic feature killswitch. When Honeycomb attributes a service's budget burn to a recently shipped feature, the workflow writes the flag's value to off in a Cloudflare KV namespace that your edge code reads, immediately disabling the feature for all users without a redeploy. Every action is recorded for audit.

When to use it

Use this when feature rollouts are gated by edge-evaluated flags in Cloudflare and you want bad features pulled automatically the instant they start eating budget, rather than waiting for a human to react.

How it works

  1. 1A Honeycomb burn-alert webhook fires with the offending feature tag in the payload.
  2. 2A logic step confirms the burn exceeds the kill threshold and resolves the matching flag key.
  3. 3The workflow writes the flag to off in the Cloudflare KV namespace, taking effect at the edge.
  4. 4It inserts an audit row into Postgres recording who, what, and the burn rate at kill time.
  5. 5It posts a Slack message naming the disabled feature and the budget impact.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect HoneycombDistributed traces and queries.
  2. 2
    Connect CloudflareWorkers, Pages, R2, KV — the edge stack.
  3. 3
    Connect PostgresAny Postgres URL — query, write, migrate.
  4. 4
    Connect SlackChannels, DMs, threads, mentions.
  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.