Cloudflare
Overview
Connect a Cloudflare account and get daily usage-based cost per product and zone in the same views as the rest of your spend. One connection covers the whole Cloudflare account - every zone and every usage-billed product.
Pay-as-you-go accounts onlyCloudflare's Billable Usage API only returns data for pay-as-you-go accounts. Enterprise contract accounts are not supported - the connection fails with a clear error. The API also leaves out plan charges billed per zone and fixed subscription fees, so those line items won't appear in Umbrella even on supported accounts.
Why it matters
Cloudflare's usage-based products - Workers, R2, KV, and others - meter at the request, millisecond, and byte, which means cost moves with traffic and deploy patterns in ways a fixed-rate forecast can't track. Connecting brings that variable spend into Umbrella so you can see which products and zones drive cost, catch spikes early, and tie Cloudflare spend to the services behind them.
What gets tracked
| Signal | Granularity |
|---|---|
| Usage-based cost per product (Workers, R2, KV, and others) | Daily |
| Zone attribution | Daily, for zone-scoped products |
| Resource category within a product | Daily |
Umbrella reads the Billable Usage API in read-only mode. The connection does not access anything inside your zones or your Cloudflare settings.
Dimensions
After the connection ingests, Cloudflare spend is slice-able across Cost & Usage Explorer, Business Mapping, Budgets, and Anomaly Detection by these dimensions:
| Dimension | What it holds |
|---|---|
| Product | The Cloudflare product that generated the charge - Workers, R2, KV, and others. |
| Zone | The zone the charge is attributed to, for zone-scoped products. |
| Resource category | Sub-breakdown within a product (e.g. operation classes for R2, request categories for Workers). |
| Date | Daily granularity. |
Before you start
- Account admin access on the Cloudflare account you want to connect.
- The account must be on pay-as-you-go billing. Enterprise contract accounts are not supported.
- Ability to create an Account API token at Manage Account → Account API Tokens. A user API token also works but is tied to the user's membership in the account - see the note in Step 2.
Step 1: Connection details
Open Cloud Connections → Add connection → Cloudflare to launch the wizard.
| Field | What it is | Where to find it |
|---|---|---|
| Connection name | Label this connection carries in Umbrella (e.g. Acme Cloudflare). One connection covers the whole Cloudflare account. | Any descriptive name. |
| Account ID | The 32-character hex ID of your Cloudflare account. | In the dashboard URL after dash.cloudflare.com/, or in Account Home → Account details. |
Umbrella checks the Account ID against the token you'll provide in Step 3 to make sure they match. Click Continue.
Step 2: Create API token
Open dash.cloudflare.com in another tab, signed in as an account admin, then follow the token-creation steps.
Account API token recommendedA user API token from My Profile → API Tokens also works, but it stops returning data when the user leaves or loses access to the account. For a durable connection, use an Account API token created from Manage Account.
Create an Account API token
- Open Account API Tokens. From the account you want to connect, go to Manage Account → Account API Tokens.
- Create a custom token. Click Create Token, then Create Custom Token.
- Name it. Give it a descriptive name (e.g.
Umbrella Cost). - Grant one permission: under Permissions, set Account → Billing → Read. No zone permissions are needed.
- Create and copy the token. The token is shown only once - copy it before leaving the page.
Click Continue on the wizard.
Step 3: Enter credentials
Paste the token into the wizard.
| Field | Value |
|---|---|
| API token | The token from Step 2. Encrypted at rest by Umbrella. |
Umbrella validates that the token can read billing for the Account ID you entered in Step 1. If validation passes, click Continue.
Enterprise contracts fail hereIf the account is on a Cloudflare Enterprise contract, validation returns a clear error - the Billable Usage API doesn't cover those accounts. The connection cannot be created for Enterprise accounts.
Step 4: Done
Umbrella begins pulling Cloudflare billable usage. The connection first appears in Pending Data state and flips to Healthy once the first batch lands. The first export covers the current open billing period and the previous one, so historical data is available immediately.
From here you can explore the connection like any other in Umbrella - the common workflows below cover the first few things most teams do.
Common workflows
Investigate a Cloudflare cost spike
- Open the Cost & Usage Explorer and scope to the Cloudflare account.
- Set the date range to cover the spike period and a few days before it.
- Group by Product to see which Cloudflare product drove the increase.
- Click the spike bar to drill down by Zone (for zone-scoped products) or Resource category and identify where the usage came from.
- Correlate with deploy timestamps or traffic events to find the trigger.
Break down R2 or Workers cost
- Filter by Product = R2 (or Workers, KV, etc.).
- Group by Resource category to see cost split across operation classes (e.g. Class A vs Class B operations for R2).
- Use daily granularity to see how the mix shifts over time - helpful for evaluating whether caching, batching, or lifecycle policies are moving the needle.
Per-zone chargeback
- Group by Zone and set the date range to the billing period.
- Review the Details table - each row shows one zone's total usage-based Cloudflare cost.
- Export the table for your chargeback workflow.
- Remember that fixed subscription fees and per-zone plan charges are not in the Umbrella numbers - add those separately if your chargeback needs to reflect total Cloudflare cost.
Token rotation
Account API tokens don't expire automatically unless you set an expiration at creation. To rotate cleanly:
- Create a replacement Account API token in Cloudflare with the same Account, Billing, Read permission.
- Update the token in Umbrella under Cloud Connections → [your connection] → Edit.
- Delete the old token from Manage Account → Account API Tokens.
Rotating quarterly is a reasonable baseline; align to your own credential-hygiene policy.
Troubleshooting
"Enterprise contract not supported." The Billable Usage API doesn't cover Enterprise contract accounts. Cloudflare Enterprise cost must be tracked through your invoice or a separate workflow.
Wrong Account ID. The Account ID is a 32-character hex string, not the zone ID or the API token ID. Copy it from the dashboard URL after dash.cloudflare.com/ or from Account Home → Account details.
Token missing permission. The token needs exactly one permission: Account → Billing → Read. If other permissions are set, the token still works but is over-scoped; if Billing Read is missing, the connection fails validation.
User API token stopped returning data. The user who created the token left the account or lost admin access. Recreate it as an Account API token from Manage Account so it isn't tied to a single user.
No cost appears for plan or subscription charges. Expected - the Billable Usage API only covers usage-based line items. Fixed subscription fees and per-zone plan charges are outside its scope.
Related
Updated about 9 hours ago
