Billing
D1 exposes analytics to track billing metrics (rows read, rows written, and total storage) across all databases in your account.
The metrics displayed in the Cloudflare dashboard ↗ are sourced from Cloudflare’s GraphQL Analytics API. You can access the metrics programmatically via GraphQL or HTTP client.
Total account billable usage analytics for D1 are available in the Cloudflare dashboard. To view current and past metrics for an account:
- Log in to the Cloudflare dashboard ↗ and select your account.
- Go to Manage Account > Billing.
- Select the Billable Usage tab.
From here you can view charts of your account’s D1 usage on a daily or month-to-date timeframe.
Note that billable usage history is stored for a maximum of 30 days.
Usage-based billing notifications are available within the Cloudflare dashboard ↗ for users looking to monitor their total account usage.
Notifications on the following metrics are available:
- Rows Read
- Rows Written