Skip to content

fix(chart): give the edge Envoy's OTLP stats a resource identity (service, instance, node) - #809

Merged
bpalermo merged 2 commits into
mainfrom
fix/edge-otel-resource-identity
Sep 19, 2026
Merged

bpalermo merged 2 commits into
mainfrom
fix/edge-otel-resource-identity

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

Found by the platform side (talos-main) after OtelCollectorExportFailing{exporter="otlp_http/prometheus"} fired at 12:15Z on 2026-09-19.

The edge Envoy's OTEL_RESOURCE_ATTRIBUTES carried only k8s.namespace.name and
k8s.pod.name: no service.name, so its ~877 series had no job, and no
k8s.node.name, so the platform collector's node backstop had nothing to promote.
Both edge replicas therefore wrote ONE shared label set. Every rule and panel over
an edge Envoy metric has been reading a zig-zag of two proxies (label-less
envoy_server_uptime alternates between two values 0.64s apart), and on 2026-09-19,
once each replica landed on its own collector replica, Prometheus started answering
400 (duplicate sample for timestamp) for whole batches and
OtelCollectorExportFailing fired for otlp_http/prometheus.

The Envoy container now sends service.name=aether-edge-proxy and
service.instance.id= — the two resource attributes Prometheus's OTLP
ingestion maps onto labels by itself (job, instance), so the replicas separate
with no collector change — plus k8s.node.name, k8s.pod.uid and
k8s.deployment.name. The pod is the right discriminator: unlike the node proxy,
two edge replicas may share a node. The edge agent container gets the same k8s.*
set (its service.name already comes from the binary).

Chart 0.92.25. Rolls the edge Deployment only.

Rendered and checked with helm template; bazel test //charts/aether/... green.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

bpalermo and others added 2 commits September 19, 2026 09:35
…vice, instance, node)

The edge Envoy's OTEL_RESOURCE_ATTRIBUTES carried only k8s.namespace.name and
k8s.pod.name: no service.name, so its ~877 series had no `job`, and no
k8s.node.name, so the platform collector's node backstop had nothing to promote.
Both edge replicas therefore wrote ONE shared label set. Every rule and panel over
an edge Envoy metric has been reading a zig-zag of two proxies (label-less
envoy_server_uptime alternates between two values 0.64s apart), and on 2026-09-19,
once each replica landed on its own collector replica, Prometheus started answering
400 (duplicate sample for timestamp) for whole batches and
OtelCollectorExportFailing fired for otlp_http/prometheus.

The Envoy container now sends service.name=aether-edge-proxy and
service.instance.id=<pod> — the two resource attributes Prometheus's OTLP
ingestion maps onto labels by itself (job, instance), so the replicas separate
with no collector change — plus k8s.node.name, k8s.pod.uid and
k8s.deployment.name. The pod is the right discriminator: unlike the node proxy,
two edge replicas may share a node. The edge agent container gets the same k8s.*
set (its service.name already comes from the binary).

Chart 0.92.25. Rolls the edge Deployment only.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
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