Connect Cloudflare
Cloudflare is a global cloud platform providing CDN, security, and edge computing services. The Cloudflare integration imports your usage and subscription billing data into DoiT Cloud Intelligence so you can analyze Cloudflare costs in Cloud Analytics.
Prerequisites
-
A Cloudflare account with access to billing data.
-
A DoiT account with the Billing Profiles Admin permission.
Required credentials
| Field | Description | Where to find it |
|---|---|---|
| Account ID | Your Cloudflare account identifier | Cloudflare dashboard > Overview > Account ID (right sidebar) |
| API Token | API token with Billing:Read permission | Cloudflare dashboard > Create Token |
Create an API token
-
Sign in to the Cloudflare dashboard.
-
Navigate to your profile > API Tokens.
-
Select Create Token.
-
Under permissions, add Billing with Read access.
-
Select Continue to summary, then Create Token.
-
Copy the token.
CautionThe token is only shown once. Make sure to copy it before closing the page.
Connect your Cloudflare account
-
Sign in to Cloud Intelligence, select Data ingestion and integrations > Integrations from the top navigation mega menu.
-
Search for Cloudflare in the integrations catalog.
-
Select Connect + on the integration card.
-
Enter your Account ID and API Token.
-
Select Test connection to verify DoiT can access your Cloudflare billing data.
-
If the test is successful, select Save to complete the setup.
If the test fails or you need further assistance, please open an expert inquiry.
Upon initial connection, DoiT ingests the usage data Cloudflare makes available, which covers roughly the last two billing cycles. Earlier history cannot be imported, because Cloudflare's billable usage API does not serve it. The import process can take a few hours. You'll receive an email when the data is available in Cloud Analytics.
Data refresh
DoiT refreshes your Cloudflare billing data every six hours. Data typically becomes available within 48 hours of being generated by Cloudflare.
Connection status
After the first sync completes, each connection displays a status on the integrations page. Hover over the status to see additional details.
| Status | Color | Meaning |
|---|---|---|
| Success | Green | The sync completed and billing data is available in Cloud Analytics. |
| No data | Amber | The sync completed, but no usage data is available. See No data. |
| Auth error | Amber | The API token is missing a required permission. See Auth error. |
| Failed | Red | The sync encountered an unexpected error. |
No data
An amber No data status appears when a sync succeeds but no usage data is available, for example, an Enterprise contract account. Cloudflare's billable usage API does not serve usage data for these accounts.
No action is required for Enterprise contract accounts. The status reflects a provider-side limitation, not a configuration problem.
Auth error
An amber Auth error status indicates that the API token is missing a required permission, usually Billing with Read access.
To resolve the error:
-
Create a new API token with Billing > Read permission.
-
On the integrations page, select Manage on the Cloudflare card.
-
Update the API Token field with the new token and save.
Reporting dimensions
Once connected, Cloudflare data maps to the following standard Cloud Analytics dimensions:
| Cloud Analytics dimension | Cloudflare value | Example |
|---|---|---|
| Provider | Cloudflare | Cloudflare |
| Billing Account | Account ID | 023e105f4ecef8ad9ca31a8372d0c353 |
| Project/Account ID | Zone name or account-level | example.com |
| Service | Service name | Regular Twitch Neurons (RTN), Cloudflare Subscription |
| SKU | Charge description | Argo Accelerated Gigabytes usage measured in Gigabytes, Pro Plan |
In addition to standard dimensions, the following Cloudflare-specific labels are available:
| Label | Description |
|---|---|
| Service | Cloudflare service name (e.g., Log Explorer, Regular Twitch Neurons (RTN)) |
| Service Family | Service family grouping (e.g., Workers AI, Durable Objects) |
| Zone | The Cloudflare zone (domain) associated with the charge |
| Unit | Unit of consumption (usage charges only, e.g., Gigabytes, Count). Maps to the Cloudflare consumed_unit field. |
| AI Product | Whether the charge is for a Cloudflare AI product such as Workers AI or Vectorize (true or false) |
| Plan | Rate plan name (subscription charges only) |
| Subscription State | Subscription status (subscription charges only) |
| Billing Frequency | Billing frequency (subscription charges only) |
| Contract Account | Whether the account is on an Enterprise contract (subscription charges only) |
Cloudflare AI costs (Workers AI and Vectorize) are filterable in Cloud Analytics using the AI Product label. Once the integration is active, Workers AI and Vectorize spend also appears in the GenAI Intelligence dashboard alongside other supported GenAI providers.
Cloudflare's billable usage API is not available for Enterprise contract accounts. The connection displays an amber No data status to indicate this limitation.
Delete your Cloudflare connection
-
Sign in to Cloud Intelligence, select Data ingestion and integrations > Integrations from the top navigation mega menu.
-
Search for Cloudflare in the integrations catalog.
-
Select Manage on the integration card.
-
Select the kebab menu (⋮) at the rightmost end of the account you want to remove and select Delete.
-
Select Delete to confirm.