-
Notifications
You must be signed in to change notification settings - Fork 2
Metrics
Temp edited this page Dec 9, 2025
·
5 revisions
The Metrics tab provides analytics and performance insights for your Cloudflare KV namespaces, powered by Cloudflare's GraphQL Analytics API.
Click the Metrics tab in the main navigation (between Search and Job History) to view the metrics dashboard.
Select a specific namespace or choose "All Namespaces" to view aggregate metrics across your account.
Choose from preset date ranges:
- Last 7 days (default)
- Last 14 days
- Last 30 days
- Last 90 days
View key metrics at a glance:
- Total Operations: Combined count of all KV operations
- Reads: Total read operations with percentage
- Writes: Total write operations with percentage
- Data Points: Number of metric records collected
Visual progress bars show the distribution of operations by type:
- Read
- Write
- Delete
- List
Table displaying average latency percentiles by operation type:
- P50: Median latency (50th percentile)
- P90: 90th percentile latency
- P99: 99th percentile latency
- Metrics data is cached for 2 minutes to reduce API calls
- Click the Refresh button to bypass the cache and fetch the latest data
- Automatic exponential backoff handles rate limiting gracefully
Fetch account-wide KV metrics.
Query Parameters:
-
days(optional): Number of days to query (default: 7) -
startDate(optional): Start date in YYYY-MM-DD format -
endDate(optional): End date in YYYY-MM-DD format -
skipCache(optional): Set totrueto bypass cache
Fetch metrics for a specific namespace.
Path Parameters:
-
namespaceId: The KV namespace ID
Query Parameters: Same as above
{
"namespaceId": "abc123" | null,
"startDate": "2024-12-01",
"endDate": "2024-12-09",
"totalOperations": 15420,
"operationsByType": {
"read": 12000,
"write": 3000,
"delete": 400,
"list": 20
},
"avgLatencyMs": {
"read": { "p50": 2.5, "p90": 5.1, "p99": 12.3 },
"write": { "p50": 15.2, "p90": 28.4, "p99": 45.7 }
},
"dataPoints": [
{
"date": "2024-12-09",
"actionType": "read",
"requests": 1500,
"latencyMsP50": 2.4,
"latencyMsP90": 4.8,
"latencyMsP99": 11.2
}
]
}- Metrics data comes from Cloudflare's Analytics API and may have a delay of a few minutes
- Data is retained for approximately 3 months
- The API token must have
Account Analytics:Readpermission to access metrics
- Job History - View operation history and status
- Audit Logging - Detailed audit trail of all operations
Getting Started
User Documentation
- User Guide
- Namespace Management
- Key Operations
- Metadata and Tags
- Search and Discovery
- Bulk Operations
- Import and Export
- R2 Backup and Restore
- Job History
- Metrics
- Health Dashboard
- Audit Logging
- Webhooks
- Threshold Monitoring
Technical
Guides
Links