Skip to content

feat(proxy): OTel stats sink — push Envoy stats to the collector when telemetry is enabled - #154

Merged
bpalermo merged 1 commit into
mainfrom
feat/proxy-otel-stats-sink
Jun 12, 2026
Merged

bpalermo merged 1 commit into
mainfrom
feat/proxy-otel-stats-sink

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

Completes the push-first telemetry story for the proxy: with telemetry.otlpEndpoint set, the bootstrap adds envoy.stat_sinks.open_telemetry + a static otel_collector cluster (STRICT_DNS, h2c). Without it the bootstrap is byte-identical to today.

Why a sink and not a scrape: admin /stats renders on Envoy's main thread (100–500ms at scale — measured during the cardinality audit), so Prometheus-style scraping is off the table; the OTel sink serializes on the stats flush path instead. Cardinality stays bounded by the existing stats_config exclusions (~2.7k stats/proxy).

Validation: chart lint/template tests pass; rendered bootstrap (with and without endpoint) envoy --mode validated on the deployed image digest. E2e plan post-merge: deploy with telemetry.otlpEndpoint pointed at an in-cluster collector (debug/stdout exporter, no Prometheus) and confirm envoy.* metrics arrive alongside the control-plane (agent/registrar) OTel metrics.

🤖 Generated with Claude Code

… telemetry is enabled

When telemetry.otlpEndpoint is set, the bootstrap gains an
envoy.stat_sinks.open_telemetry sink and a static otel_collector
cluster (STRICT_DNS to the configured endpoint, h2c). Push-first like
the rest of the mesh telemetry: the admin /stats endpoint renders on
Envoy's MAIN thread (100-500ms at scale) and must never be scraped;
the sink serializes off the flush path instead. Cardinality stays
bounded by the existing stats_config exclusions. No otlpEndpoint =
bootstrap unchanged.

Validated with envoy --mode validate on the deployed image digest.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant