Skip to content
This repository was archived by the owner on Mar 20, 2026. It is now read-only.

Commit 94dc503

Browse files
jamessewellpaulfantom
authored andcommitted
Fix Otel Operator auto-instrumentation
- hard code init container images - remove extra tobs prefix from collector - change port and hostname for Instrumentation to find Collector
1 parent 17b03cd commit 94dc503

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.vscode/
22
.idea/
33
cli/bin
4+
cli/tobs
45
chart/Chart.lock
56
tmp/

chart/templates/otel-auto-instrumentation.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,17 @@ metadata:
88
"helm.sh/hook-weight": "0"
99
spec:
1010
exporter:
11-
endpoint: http://{{ .Release.Name }}-otel-collector.{{ .Release.Namespace }}.svc:4317
11+
endpoint: http://{{ .Release.Name }}-opentelemetry-collector.{{ .Release.Namespace }}.svc:4318
1212
propagators:
1313
- tracecontext
1414
- baggage
1515
- b3
16+
python:
17+
image: ghcr.io/open-telemetry/opentelemetry-operator/autoinstrumentation-python:latest
18+
java:
19+
image: ghcr.io/open-telemetry/opentelemetry-operator/autoinstrumentation-java:latest
20+
nodejs:
21+
image: ghcr.io/open-telemetry/opentelemetry-operator/autoinstrumentation-nodejs:latest
1622
sampler:
1723
type: parentbased_traceidratio
1824
argument: "0.25"

chart/templates/otel-collector.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: opentelemetry.io/v1alpha1
33
kind: OpenTelemetryCollector
44
metadata:
5-
name: {{ .Release.Name }}-tobs-opentelemetry
5+
name: {{ .Release.Name }}-opentelemetry
66
annotations:
77
"helm.sh/hook": post-install,post-upgrade,pre-delete
88
"helm.sh/hook-weight": "0"

0 commit comments

Comments
 (0)