OpenTelemetry (2)

Last updated Apr 21, 2026 Privacy Proxy exports telemetry data using the OpenTelemetry Protocol (OTLP) ↗︎. You can configure an endpoint to receive this data and forward it to your observability platform.


Configure telemetry export

During onboarding, provide Cloudflare with your OpenTelemetry collector endpoint:

  • Endpoint URL: The HTTPS endpoint where telemetry data should be sent.
  • Authentication: Headers or credentials required to authenticate with your collector. Supported authentication types include bearer token headers, custom header-based authentication, and mutual TLS (mTLS).

Cloudflare configures your Privacy Proxy instance to export telemetry to this endpoint.


Supported signals

Privacy Proxy exports the following telemetry signals:

Signal Description
Metrics Connection counts, request rates, latency histograms, error rates
Traces Per-request traces showing proxy processing time. Traces are sampled at approximately 1% of requests.

Metrics

Privacy Proxy exports metrics that help you understand usage patterns and performance.

Connection metrics

Metric Description
privacy_proxy_connections_total Total number of proxy connections
privacy_proxy_connections_active Currently active connections
privacy_proxy_connections_duration_seconds Connection duration histogram

Request metrics

Metric Description
privacy_proxy_requests_total Total CONNECT requests processed
privacy_proxy_requests_by_status Requests grouped by response status code
privacy_proxy_bytes_sent_total Total bytes sent to destinations
privacy_proxy_bytes_received_total Total bytes received from destinations

Latency metrics

Metric Description
privacy_proxy_connect_latency_seconds Time to establish connection to destination
privacy_proxy_first_byte_latency_seconds Time to first byte from destination

Server-Timing header

Privacy Proxy includes a Server-Timing header in responses to help measure processing latency from the client side. For full header format details, refer to HTTP headers.

Server-Timing: proxy;dur=12.5

The dur value is the processing time in milliseconds introduced by the proxy. Use this header as a client-side SLI (Service Level Indicator) to monitor proxy performance.

Example: Prometheus and Grafana

To visualize Privacy Proxy metrics in Grafana:

  1. Configure an OpenTelemetry collector to receive data from Privacy Proxy.
  2. Export metrics from the collector to Prometheus.
  3. Create Grafana dashboards using Prometheus as a data source.

Example Prometheus queriestxt

# Request rate over time
rate(privacy_proxy_requests_total[5m])

# 95th percentile connection latency
histogram_quantile(0.95, rate(privacy_proxy_connect_latency_seconds_bucket[5m]))

# Error rate
sum(rate(privacy_proxy_requests_by_status{status=~"5.."}[5m])) / sum(rate(privacy_proxy_requests_total[5m]))

Was this helpful?

YesNo

On this page

OpenTelemetry (2) - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/privacy-proxy/reference/metrics/opentelemetry/#page","headline":"OpenTelemetry","description":"Export Privacy Proxy metrics and traces to your observability platform using the OpenTelemetry Protocol (OTLP).","url":"https://developers.cloudflare.com/privacy-proxy/reference/metrics/opentelemetry/","inLanguage":"en","image":"https://developers.cloudflare.com/privacy-proxy/reference/metrics/opentelemetry/og.png?v=16f14ef46d7dd34d","dateModified":"2026-04-21","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: All possible proxyStatus values for Privacy Proxy error classification in GraphQL Analytics and OpenTelemetry metrics. title: Proxy status reference image: https://developers.cloudflare.com/privacy-proxy/reference/proxy-status/og.png?v=3275dc1ee16f27df


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/privacy-proxy/llms.txt
Use this file to discover all available pages before exploring further.