/

/

Cost per API request with Datadog or CloudWatch metrics

Cost per API request with Datadog or CloudWatch metrics

Cost per API request with Datadog or CloudWatch metrics

Divide a service's allocated cost by its request volume from Datadog or CloudWatch, and track it release after release.

Runs in

Claude · Slack

First optimization recommendation

The next day

ROI

Pays for itself with the first recommendation you act on

Costory app dashboard 'BQ pricing change': monthly cost breakdown bar chart by charge description with events, a cost distribution donut and a cost details table, in the demo workspace

Playbook

What the agent does

From what Costory notices to what you decide. Costory suggests the next step in conversation, and you decide whether to go ahead.

Costory notices

A release changes a service's cost per request.

Costory investigates

01

Allocate the service

All cost lines for the service, including shared ones.

02

Bring request volume

From Datadog or CloudWatch.

03

Formula

Cost per 1M requests.

04

Mark releases

Deploy events show which release moved the unit cost.

Where you see it

Claude

You decide

The service team decides whether to roll back or optimize.

Why it matters

Engineers optimize latency because they can see it. Cost per request is just as easy to track once cost and metrics live together.

Who it’s for

Backend engineers, platform teams

Where it runs

Claude · Slack

What you get

What lands in front of your team

An engineering-native unit

Cost per request, like latency.

Release-aware

See which deploy moved it.

Early warning

Alerts on unit cost drift.

Sources and assistants

What it connects

The billing data, context and assistants this playbook uses. Each links to its setup page.

The billing data, context and assistants this playbook uses. Each links to its setup page.

Example prompts

Or drive it yourself

The agent runs this on its own once set up. These prompts open in Claude, pre-filled, to set it up, review it or dig into a result.

The agent runs this on its own once set up. These prompts open in Claude, pre-filled, to set it up, review it or dig into a result.

Build

Show cost per 1M requests for checkout-api over the last 90 days using Datadog request counts, with deploys overlaid.

Alert

Alert #team-checkout if cost per 1M requests rises more than 15% week over week.

FAQ

Questions about this playbook

Where do business metrics come from?

From Amplitude, BigQuery, Snowflake, Google Sheets, S3, Datadog, CloudWatch or metrics you push to Costory's API.

How long does this playbook take to set up?

Connecting your billing data and the Costory MCP takes under 30 minutes with Terraform or CloudFormation. The playbook itself takes minutes: pick the scope, the trigger and the Slack channel. The first billing data lands the next day, and the agent starts from there.

Can we adjust what the agent does?

Yes. You choose the trigger, the scope (team, service, environment), the channel and the format, and you can pause or change it at any time.

Does Costory change anything in our cloud accounts?

No. Costory reads billing exports and the metrics you connect, and has no write access to your cloud. Actions it takes create Costory objects only: alerts, reports, dashboards and events. Your team stays in control of every change.

Step-by-step guide in the Costory docs

Put this playbook on call

Included in every plan, from €250/month. 30-day free trial: connect in under 30 minutes, get your first optimization recommendation the next day.

First optimization recommendation

The next day

ROI

Pays for itself with the first recommendation you act on

Setup

About 30 minutes

Data residency

EU

Access

Read-only on your cloud