-
Notifications
You must be signed in to change notification settings - Fork 2
Metrics
The Metrics Dashboard provides analytics and performance insights for your Cloudflare KV namespaces, powered by Cloudflare's GraphQL Analytics API. It features a tabbed interface with Operations and Storage views.
Click the Metrics tab in the main navigation (between Search and Job History) to view the metrics dashboard.
View operational metrics including read/write counts and latency:
Summary Cards:
- Total Operations: Combined count of all KV operations
- Reads: Total read operations with percentage
- Writes: Total write operations with percentage
- Namespaces: Count of namespaces with activity
Operations Breakdown: Visual progress bars showing distribution by type:
- Read (blue)
- Write (green)
- Delete (red)
- List (purple)
Average Latency: Aggregated latency percentiles across all operations:
- P50: Median latency
- P90: 90th percentile
- P99: 99th percentile
View storage metrics per namespace:
Summary Cards:
- Total Keys: Aggregate key count across all namespaces (with trend indicator)
- Total Storage: Combined storage size in human-readable format (with trend indicator)
- Data Points: Number of storage records collected
Storage by Namespace: Sortable table showing per-namespace breakdown:
- Namespace name
- Key count
- Storage size
- Click rows to expand and view namespace ID and operation counts
Trend Indicators: Green/red arrows show storage growth or decline over the selected time period.
Select a specific namespace or choose "All Namespaces" for account-wide metrics.
- Last 24 hours
- Last 7 days (default)
- Last 30 days
Note: Cloudflare's GraphQL Analytics API retains KV metrics for up to 31 days.
- Metrics data is cached for 2 minutes to reduce API calls
- Click Refresh to bypass cache and fetch the latest data
- Automatic exponential backoff handles rate limiting gracefully
Fetch KV metrics for all namespaces or a specific namespace.
Query Parameters:
| Parameter | Type | Description |
|---|---|---|
range |
string | Time range: 24h, 7d, or 30d (default: 7d) |
namespaceId |
string | Filter to specific namespace (optional) |
skipCache |
boolean | Set to true to bypass cache |
{
"summary": {
"timeRange": "7d",
"startDate": "2026-01-01",
"endDate": "2026-01-08",
"totalOperations": 15420,
"operationsByType": {
"read": 12000,
"write": 3000,
"delete": 400,
"list": 20
},
"avgLatencyMs": {
"p50": 2.5,
"p90": 5.1,
"p99": 12.3
},
"totalKeyCount": 7500,
"totalByteCount": 52428800,
"namespaceCount": 3
},
"byNamespace": [
{
"namespaceId": "abc123",
"namespaceName": "production-cache",
"totalOperations": 10000,
"operationsByType": { "read": 8000, "write": 2000 },
"p50LatencyMs": 2.1,
"p90LatencyMs": 4.5,
"p99LatencyMs": 10.2,
"currentKeyCount": 5000,
"currentByteCount": 40000000
}
],
"operationsSeries": [
{
"date": "2026-01-08",
"namespaceId": "abc123",
"actionType": "read",
"requests": 1500,
"latencyMsP50": 2.4,
"latencyMsP90": 4.8,
"latencyMsP99": 11.2
}
],
"storageSeries": [
{
"date": "2026-01-08",
"namespaceId": "abc123",
"keyCount": 5000,
"byteCount": 40000000
}
]
}KV Manager queries two Cloudflare GraphQL Analytics datasets:
| Dataset | Metrics Provided |
|---|---|
kvOperationsAdaptiveGroups |
Request counts, latency percentiles (P50, P90, P99), action types |
kvStorageAdaptiveGroups |
Key count, byte count per namespace |
- Metrics data comes from Cloudflare's Analytics API and may have a delay of a few minutes
- Storage data is available for up to 31 days
- The API token must have
Account Analytics:Readpermission to access metrics - In local development mode, mock data is displayed automatically
- Job History - View operation history and status
- Audit Logging - Detailed audit trail of all operations
- Health Dashboard - System health overview
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