Billing (2)

Last updated Apr 21, 2026 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.

View metrics in the dashboard

Total account billable usage analytics for D1 are available in the Cloudflare dashboard. To view current and past metrics for an account:

  1. In the Cloudflare dashboard, go to the Billing page. Go to Billing ↗
  2. Go to Billable Usage.

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.

Billing Notifications

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

Was this helpful?

YesNo

On this page

Billing (2) - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/d1/observability/billing/#page","headline":"Billing","description":"Track D1 billing metrics including rows read, rows written, and storage usage across your account.","url":"https://developers.cloudflare.com/d1/observability/billing/","inLanguage":"en","image":"https://developers.cloudflare.com/d1/observability/billing/og.png?v=fcca00d188f82b55","dateModified":"2026-04-21","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Capture exceptions and log error messages returned from D1 database queries. title: Debug D1 image: https://developers.cloudflare.com/d1/observability/debug-d1/og.png?v=16a486104ffa018f


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/d1/llms.txt
Use this file to discover all available pages before exploring further.