/cloudflare-vm:graphql-apifrom cloudflare-vm
Cloudflare GraphQL Analytics API: Query analytics data across all Cloudflare products via a single GraphQL endpoint. Covers HTTP requests, Workers metrics, DNS, Firewall events, Network Analytics, and 70+ other datasets.
Ships in cloudflare-vm. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Vendored from themusebook/skills (derived from cloudflare/skills, Apache-2.0). This snapshot may be outdated: confirm limits, pricing, API signatures and config options against https://developers.cloudflare.com/ before you cite them. When this file and the docs disagree, trust the docs.
When invoked: read every file in this skill's directory before answering, so you have the full reference: api.md, configuration.md, gotchas.md, patterns.md. Then answer the user's question (or, if none was given, summarise the product: what it is, config, API, patterns and gotchas). Related products are sibling skills, linked as ../<product>/.
Query analytics data across all Cloudflare products via a single GraphQL endpoint. Covers HTTP requests, Workers metrics, DNS, Firewall events, Network Analytics, and 70+ other datasets.
https://api.cloudflare.com/client/v4/graphqlNeed analytics data from Cloudflare?
├─ HTTP traffic (requests, bandwidth, cache) → httpRequestsAdaptiveGroups (zone or account)
├─ Workers performance (CPU, wall time, errors) → workersInvocationsAdaptive (account)
├─ Firewall/WAF events → firewallEventsAdaptive / firewallEventsAdaptiveGroups (zone or account)
├─ DNS query analytics → dnsAnalyticsAdaptive / dnsAnalyticsAdaptiveGroups (zone or account)
├─ Network layer (DDoS, Magic Transit) → *NetworkAnalyticsAdaptiveGroups (account)
├─ Storage (R2, KV, D1, DO) → r2OperationsAdaptiveGroups / kvOperationsAdaptiveGroups / etc. (account)
├─ AI (Workers AI, AI Gateway) → aiInferenceAdaptive / aiGatewayRequestsAdaptiveGroups (account)
├─ Load Balancing → loadBalancingRequestsAdaptiveGroups (zone)
├─ Custom high-cardinality metrics → Workers Analytics Engine (see ../analytics-engine/)
└─ Need raw logs, not aggregates → Logpush (see Cloudflare docs)
| Concept | Description |
|---|---|
| Endpoint | POST https://api.cloudflare.com/client/v4/graphql |
| Explorer | graphql.cloudflare.com - interactive query builder |
| Viewer | Root query object: viewer { zones(...) { ... } } or viewer { accounts(...) { ... } } |
| Dataset (Node) | A queryable table under a zone or account (e.g., httpRequestsAdaptiveGroups) |
| Dimensions | Fields to group by (time buckets, country, status code, script name, etc.) |
| Metrics | Aggregation fields: count, sum { ... }, avg { ... }, quantiles { ... }, ratio { ... } |
| Filter | Input object constraining results by time range, dimensions, etc. |
| Limit | Maximum rows returned per dataset node (required, max varies by dataset) |
| OrderBy | Enum-based sorting: [field_ASC] or [field_DESC] |
| Adaptive Sampling | Nodes with Adaptive in the name use ABR sampling; results are statistically representative |
Every query follows this pattern:
{
viewer {
# Zone-scoped
zones(filter: { zoneTag: "ZONE_ID" }) {
datasetName(
filter: { datetime_gt: "...", datetime_lt: "..." }
limit: 1000
orderBy: [datetimeFiveMinutes_DESC]
) {
count
dimensions { ... }
sum { ... }
}
}
# Account-scoped
accounts(filter: { accountTag: "ACCOUNT_ID" }) {
datasetName(filter: { ... }, limit: 100) {
count
dimensions { ... }
sum { ... }
}
}
}
}
Dataset names follow a consistent pattern visible in the schema:
| Pattern | Meaning | Example |
|---|---|---|
*Adaptive | Raw rows with adaptive sampling; some (e.g., workersInvocationsAdaptive) also support aggregation fields (sum, quantiles, avg) | httpRequestsAdaptive, workersInvocationsAdaptive |
*AdaptiveGroups | Aggregated data with adaptive sampling | httpRequestsAdaptiveGroups |
*1hGroups | Hourly rollups (pre-aggregated) | httpRequests1hGroups |
*1dGroups | Daily rollups (pre-aggregated) | httpRequests1dGroups |
*1mGroups | Minutely rollups | httpRequests1mGroups |
Zone* prefix | Zone-scoped dataset | ZoneHttpRequestsAdaptiveGroups |
Account* prefix | Account-scoped dataset | AccountWorkersInvocationsAdaptive |
Prefer *AdaptiveGroups nodes for most use cases - they support flexible time grouping via dimension fields (datetimeFiveMinutes, datetimeHour, etc.) and are the most commonly used.
| Dataset | Description |
|---|---|
httpRequestsAdaptiveGroups | HTTP traffic: requests, bytes, cache status, bot scores, WAF scores |
httpRequests1hGroups / 1dGroups / 1mGroups | Pre-aggregated HTTP rollups (hourly/daily/minutely) |
firewallEventsAdaptiveGroups | WAF, rate limiting, bot management, firewall rule events |
dnsAnalyticsAdaptiveGroups | DNS query volumes, response codes, query types |
loadBalancingRequestsAdaptiveGroups | Load Balancer origin request metrics |
pageShieldReportsAdaptiveGroups | Page Shield CSP reports |
| Dataset | Description |
|---|---|
workersInvocationsAdaptive | Workers: requests, errors, CPU time, wall time, subrequests |
durableObjectsInvocationsAdaptiveGroups | DO invocations |
durableObjectsStorageGroups / durableObjectsPeriodicGroups | DO storage and periodic metrics |
d1AnalyticsAdaptiveGroups / d1QueriesAdaptiveGroups | D1 database analytics |
r2OperationsAdaptiveGroups / r2StorageAdaptiveGroups | R2 operations and storage |
kvOperationsAdaptiveGroups / kvStorageAdaptiveGroups | KV operations and storage |
aiInferenceAdaptiveGroups | Workers AI inference metrics |
aiGatewayRequestsAdaptiveGroups | AI Gateway request analytics |
pagesFunctionsInvocationsAdaptiveGroups | Pages Functions metrics |
magicTransitNetworkAnalyticsAdaptiveGroups | Magic Transit packet/byte analytics |
spectrumNetworkAnalyticsAdaptiveGroups | Spectrum TCP/UDP analytics |
gatewayL7RequestsAdaptiveGroups | Zero Trust Gateway HTTP metrics |
gatewayResolverQueriesAdaptiveGroups | Zero Trust Gateway DNS metrics |
| Task | Start Here | Then Read |
|---|---|---|
| First query | configuration.md (auth) -> this README (structure) | api.md |
| Build a dashboard | patterns.md (time-series, top-N) | api.md (aggregation fields) |
| Debug query issues | gotchas.md | api.md (filtering) |
| Understand sampling | gotchas.md (sampling section) | api.md (confidence intervals) |
| Product-specific metrics | patterns.md (per-product examples) | api.md (dataset reference) |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub vmaia00/claude-specs --plugin cloudflare-vm64 skills in this plugin
/agents-sdkCloudflare Agents SDK: Cloudflare Agents SDK enables building AI-powered agents on Durable Objects with state, WebSockets, SQL, scheduling, and AI integration./ai-gatewayCloudflare AI Gateway: Expert guidance for implementing Cloudflare AI Gateway - a universal gateway for AI model providers with analytics, caching, rate limiting, and routing capabilities./ai-searchCloudflare AI Search Reference: Expert guidance for implementing Cloudflare AI Search (formerly AutoRAG), Cloudflare's managed semantic search and RAG service./analytics-engineCloudflare Workers Analytics Engine Reference: Expert guidance for implementing unlimited-cardinality analytics at scale using Cloudflare Workers Analytics Engine./apiCloudflare API Integration: Guide for working with Cloudflare's REST API - authentication, SDK usage, common patterns, and troubleshooting./api-shieldCloudflare API Shield Reference: Expert guidance for API Shield - comprehensive API security suite for discovery, protection, and monitoring.