-
Notifications
You must be signed in to change notification settings - Fork 233
manifests: centralize the OTLP endpoint in an ate-otel-config ConfigMap #746
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Da Huang (git286)
merged 2 commits into
agent-substrate:main
from
git286:centralize-otel-endpoint
Aug 5, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| # Copyright 2026 Google LLC | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| # Single source of truth for the OTLP exporter settings shared by every control | ||
| # plane component (ate-api-server, ate-controller, atelet, atenet-router), which | ||
| # consume it via `envFrom`. ate-controller additionally propagates these values | ||
| # to the ateom worker pods it creates, which have no other way to receive them, | ||
| # and atenet-router's --otlp-collector-address defaults to the endpoint below, | ||
| # so Envoy's own spans follow it too. | ||
| # | ||
| # This file holds the GKE values. The kind overlay supplies a ConfigMap of the | ||
| # same name with the in-cluster collector address; see | ||
| # manifests/ate-install/kind/ate-otel-config.yaml. | ||
| # | ||
| # NOTE: editing this ConfigMap does not restart the pods that consume it — the | ||
| # pod template is unchanged, so no new rollout is triggered. Follow a change | ||
| # with `kubectl rollout restart` on the affected workloads. | ||
| apiVersion: v1 | ||
| kind: ConfigMap | ||
| metadata: | ||
| name: ate-otel-config | ||
| namespace: ate-system | ||
| data: | ||
| OTEL_EXPORTER_OTLP_ENDPOINT: http://opentelemetry-collector.gke-managed-otel.svc.cluster.local:4317 |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,6 +15,9 @@ | |
| apiVersion: kustomize.config.k8s.io/v1beta1 | ||
| kind: Kustomization | ||
|
|
||
| # ate-otel-config.yaml carries the OTLP settings every component above consumes | ||
| # via envFrom. The kind overlay lists its own copy of the same ConfigMap name | ||
| # instead of building on this directory, so the two never collide. | ||
| resources: | ||
| - ../ate-api-server.yaml | ||
| - ../ate-controller.yaml | ||
|
|
@@ -23,3 +26,4 @@ resources: | |
| - ../atenet-router.yaml | ||
| - ../valkey.yaml | ||
| - ../pod-certificate-controller.yaml | ||
| - ../ate-otel-config.yaml | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe not for this PR, but
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks! Will leave it as a follow-up. |
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| # Copyright 2026 Google LLC | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| # Kind replacement for manifests/ate-install/ate-otel-config.yaml: same name, so | ||
| # the overlay lists this file instead of the base one. Points the control plane | ||
| # at the in-cluster collector deployed by kind/otel-collector.yaml. | ||
| # | ||
| # OTEL_METRIC_EXPORT_INTERVAL shortens the OTel SDK's 60s metric export tick to | ||
| # 10s. A component is invisible to the collector until its first tick, and the | ||
| # metrics e2e suite asserts against the collector's scrape on a bounded deadline, | ||
| # so the default leaves too little headroom on a loaded runner. | ||
| # | ||
| # OTEL_METRIC_EXPORT_TIMEOUT bounds a tick that fails rather than one that | ||
| # succeeds, and its 30s default swallows three shortened intervals: a collector | ||
| # blip or slow DNS drops a component back to roughly one attempt per 30s, undoing | ||
| # the shorter interval. Matching it to the interval keeps every tick an attempt. | ||
| # | ||
| # On ate-controller both do double duty: the controller also propagates them to | ||
| # the ateom worker pods it creates, which have no other way to receive them. | ||
| # Kind only; production keeps the SDK defaults. | ||
| apiVersion: v1 | ||
| kind: ConfigMap | ||
| metadata: | ||
| name: ate-otel-config | ||
| namespace: ate-system | ||
| data: | ||
| OTEL_EXPORTER_OTLP_ENDPOINT: http://opentelemetry-collector.otel-system.svc:4317 | ||
| OTEL_METRIC_EXPORT_INTERVAL: "10000" | ||
| OTEL_METRIC_EXPORT_TIMEOUT: "10000" |
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can add that ateom workers get these values at pod creation, so a rollout-restart of the controller doesn't change existing workers (until they are restarted).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added. One correction while verifying it: the workers don't need a separate restart. The controller SSA-applies the WorkerPool Deployment on every reconcile with the endpoint as a literal, so a controller restart changes the pod template and rolls the workers automatically. Confirmed on kind.