Repository navigation
feat(proxy): OTel stats sink — push Envoy stats to the collector when telemetry is enabled - #154
Merged
Merged
Conversation
… 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]>
This was referenced Oct 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Completes the push-first telemetry story for the proxy: with
telemetry.otlpEndpointset, the bootstrap addsenvoy.stat_sinks.open_telemetry+ a staticotel_collectorcluster (STRICT_DNS, h2c). Without it the bootstrap is byte-identical to today.Why a sink and not a scrape: admin
/statsrenders 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 existingstats_configexclusions (~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 withtelemetry.otlpEndpointpointed at an in-cluster collector (debug/stdout exporter, no Prometheus) and confirmenvoy.*metrics arrive alongside the control-plane (agent/registrar) OTel metrics.🤖 Generated with Claude Code