// AI Platform Drift

K2 streams metrics now available in dashboard and GraphQL Analytics API

Cloudflare developer changelog · published 2026-11-24 00:00 UTC
WORTH KNOWING Check, no change needed API
WHAT CHANGEDCloudflare added monitoring metrics for K2 streams in the dashboard and four beta GraphQL Analytics API datasets: k2ProduceAdaptiveGroups (bytes produced by input), k2ConsumeAdaptiveGroups (bytes delivered per subscription), k2StorageAdaptiveGroups (bytes stored, sampled every ten minutes), and k2SubscriptionLagAdaptiveGroups (uncommitted records and oldest record age in milliseconds). Dashboard metrics show produce and consume rates, stored bytes, subscription lag, and oldest unread records. GraphQL queries require an API token with Account Analytics Read permission. Metrics retain 7 days of data.
WHY IT MATTERSYou can now track stream throughput, storage consumption, and subscription lag without building your own instrumentation. Lag metrics identify slow consumers before they fall too far behind to catch up within the 7-day retention window.
WHAT TO DOIf you operate K2 streams, create an API token with Account Analytics Read permission and query the new datasets to baseline your current produce rates, storage usage, and subscription lag. Set alerts on lag metrics for subscriptions that must stay current.
Model-reported confidence 85% (not measured accuracy) Primary source ↗ Summary drafted by an AI model and checked by RADAR's rules
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+## K2 - K2 metrics in the dashboard and GraphQL Analytics API
+https://developers.cloudflare.com/changelog/post/2026-11-23-k2-metrics/
+Mon, 23 Nov 2026 00:00:00 GMT
+
+You can now monitor your K2 streams in the Cloudflare dashboard: how fast records are produced and consumed, how much each stream stores, and how far behind each subscription is.
+
+In the Cloudflare dashboard, go to the K2 Streams page and select a stream.
+
+Go to K2 Streams ↗
+
+Metrics appear in three places:
+
+Overview — Produce and consume rates over the last 5 minutes, stored bytes, and each subscription's records behind, oldest unread record, lag over the last hour, and bytes consumed.
+Metrics — Charts of bytes produced by input, bytes stored, and bytes delivered to each subscription, over a time range you choose.
+Subscription page — Select a subscription to see its records and bytes behind, its oldest unread record, its consume rate, and charts of its lag and throughput.
+
+The same metrics are available in the GraphQL Analytics API, in four beta datasets:
+
+k2ProduceAdaptiveGroups — Bytes produced to a stream, by input (http or binding).
+k2ConsumeAdaptiveGroups — Bytes delivered to each subscription.
+k2StorageAdaptiveGroups — Bytes a stream stores, measured about every ten minutes.
+k2SubscriptionLagAdaptiveGroups — Records a subscription has not committed, and the age of the oldest one in milliseconds.
+
+This query reads a stream's bytes produced by input in 5-minute buckets, and a subscription's current lag. To get a subscription's full lag, set the lag query's time range to cover the stream's whole retention period (7 days in this example). A shorter range leaves out older records the subscription has not committed. Replace <ACCOUNT_ID>, <STREAM_ID>, and <SUBSCRIPTION_ID> with your own values.
+Bytes produced by input, and a subscription's laggraphqlquery K2StreamMetrics {
+viewer {
+accounts(filter: { accountTag: "<ACCOUNT_ID>" }) {
+produced: k2ProduceAdaptiveGroups(
+limit: 100
+filter: {
+streamId: "<STREAM_ID>"
+datetime_geq: "2026-11-23T11:00:00Z"
+datetime_lt: "2026-11-23T12:00:00Z"
+}
+orderBy: [datetimeFiveMinutes_ASC]
+) {
+dimensions {
+input
+datetimeFiveMinutes
+}
+sum {
+bytes
+}
+}
+lag: k2SubscriptionLagAdaptiveGroups(
+limit: 1
+filter: {
+streamId: "<STREAM_ID>"
+datetime_geq: "2026-11-16T12:00:00Z"
+datetime_leq: "2026-11-23T12:00:00Z"
+}
+) {
+max(subscriptionId: "<SUBSCRIPTION_ID>") {
+records
+timeMs
+}
+}
+}
+}
+}
+NoteQueries need an API token with the Account Analytics Read permission.
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
triage verdictMaterial (MATERIAL) at 0.92, needed 0.5
triage reasoningNew K2 metrics feature with GraphQL API datasets and dashboard UI; requires new permission scope.
signalsnew feature announcement: K2 metrics monitoring · new GraphQL Analytics API datasets introduced (4 beta datasets) · new dashboard UI section: K2 Streams page with metrics · new API permission requirement: Account Analytics Read · new query capability: stream production, consumption, storage, lag tracking · retention period specified: 7 days
suppression—
triage modelanthropic/claude-haiku-4.5 ($0.00000)
writer modelanthropic/claude-sonnet-4.5 ($0.00000)