Skip to content

Privacy gateway metrics#29266

Draft
danish-m-qureshi wants to merge 12 commits intocloudflare:productionfrom
danish-m-qureshi:privacy-gateway-metrics
Draft

Privacy gateway metrics#29266
danish-m-qureshi wants to merge 12 commits intocloudflare:productionfrom
danish-m-qureshi:privacy-gateway-metrics

Conversation

@danish-m-qureshi
Copy link
Copy Markdown
Contributor

@danish-m-qureshi danish-m-qureshi commented Mar 24, 2026

Summary

Rewrites the Privacy Gateway observability reference page based on the OHTTP relay GraphQL nodes, replacing placeholder content with a full schema reference, 10 sample queries, and a three-tier status code reference covering relay, gateway, and proxy-level errors.

Changes

  • Rewrote reference/metrics.mdx to document the three ohttpRelay*AdaptiveGroups nodes with full schema (sum fields, quantile fields, dimensions) and sample queries.
  • Added a curl tab to the "Making a request" section.
  • Added a status code reference section documenting relayStatusCode, gatewayStatusCode and proxyStatus (24 named error values).
File Description
src/content/docs/privacy-gateway/reference/metrics.mdx Full rewrite of the observability reference page — documents three OHTTP relay GraphQL nodes with schema, 10 sample queries, and a complete status code reference.

POST https://api.cloudflare.com/client/v4/graphql
```

To access your metrics, you need a Cloudflare API token. Contact your Cloudflare point of contact to obtain one.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there other documentation you can reference here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

regarding this point, I initially added the following documentation: https://developers.cloudflare.com/fundamentals/api/get-started/create-token/.
However, after consulting with Andre, he informed me that we manage the clients' dashboard accounts and provide them with the API tokens instead. Given this, what are your thoughts on adding this documentation?

Copy link
Copy Markdown
Contributor

@mgalicer mgalicer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great start – added a few comments


<Details header="Protocol distribution">

Monitor HTTP and TLS version adoption across your connections over time. Each row in the result represents a distinct combination of `httpVersion` and `tlsVersion` observed in the selected time window.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm – not sure this came up in any of our customer conversations... why should we include it?

Copy link
Copy Markdown
Contributor Author

@danish-m-qureshi danish-m-qureshi Mar 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No this did not come up with any of our customer conversations. This is something extra.

We should include it for the following reasons,

1- Knowing which TLS versions are in use lets customers verify that all traffic meets their minimum security requirements (for example, confirming no clients are still on TLS 1.0/1.1).

2- if a customer plans to drop support for an older HTTP or TLS version, this query gives them concrete data on how much traffic would be affected before they make the change.

3- if a customer sees unexpected errors or latency, checking protocol distribution can quickly reveal whether a subset of clients is using an unsupported or suboptimal protocol version.

i'd suggest lets keep it. What are your thoughts on it @mgalicer?

dqureshi-ai and others added 2 commits March 25, 2026 15:01
- Revert unrelated table.css and PageTitle.astro changes (keep only slug fallback fix)
- Replace all 2025 example dates with 2026
- Remove GraphiQL tab and setup instructions to stay client-agnostic
- Simplify adaptive sampling note
- Rewrite 'connection volume' in plain language
- Add justification for protocol distribution query
- Simplify proxy status codes intro
- Fix destination_not_found description
- Add prerequisites section with links to API token and account ID docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants