Skip to content

Commit 459d35d

Browse files
bramweltclaude
andcommitted
Add OpenTelemetry Helm chart configuration
Add otel configuration section to values.yaml with environment variables for OTLP exporter configuration. Update deployment.yaml to inject OTEL environment variables into the container. Issue: LFXV2-616 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent bec399b commit 459d35d

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

charts/lfx-v2-access-check/templates/deployment.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,30 @@ spec:
3838
value: "{{ .Values.nats.url }}"
3939
- name: JWKS_URL
4040
value: "{{ .Values.heimdall.jwks_url }}"
41+
{{- if .Values.otel.serviceName }}
42+
- name: OTEL_SERVICE_NAME
43+
value: {{ .Values.otel.serviceName | quote }}
44+
{{- end }}
45+
{{- if .Values.otel.serviceVersion }}
46+
- name: OTEL_SERVICE_VERSION
47+
value: {{ .Values.otel.serviceVersion | quote }}
48+
{{- end }}
49+
{{- if .Values.otel.endpoint }}
50+
- name: OTEL_EXPORTER_OTLP_ENDPOINT
51+
value: {{ .Values.otel.endpoint | quote }}
52+
{{- end }}
53+
{{- if .Values.otel.protocol }}
54+
- name: OTEL_EXPORTER_OTLP_PROTOCOL
55+
value: {{ .Values.otel.protocol | quote }}
56+
{{- end }}
57+
{{- if .Values.otel.insecure }}
58+
- name: OTEL_EXPORTER_OTLP_INSECURE
59+
value: {{ .Values.otel.insecure | quote }}
60+
{{- end }}
61+
{{- if .Values.otel.tracesExporter }}
62+
- name: OTEL_TRACES_EXPORTER
63+
value: {{ .Values.otel.tracesExporter | quote }}
64+
{{- end }}
4165
{{- if .Values.app.resources }}
4266
resources:
4367
{{- toYaml .Values.app.resources | nindent 12 }}

charts/lfx-v2-access-check/values.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,24 @@ heimdall:
5050
enabled: true
5151
url: http://lfx-platform-heimdall.lfx.svc.cluster.local:4456
5252
jwks_url: http://lfx-platform-heimdall:4457/.well-known/jwks
53+
54+
# otel is the configuration for OpenTelemetry tracing
55+
otel:
56+
# serviceName is the service name for OpenTelemetry resource identification
57+
# (default: "lfx-v2-access-check")
58+
serviceName: ""
59+
# serviceVersion is the service version for OpenTelemetry resource identification
60+
# (default: "1.0.0")
61+
serviceVersion: ""
62+
# protocol specifies the OTLP protocol: "grpc" or "http"
63+
# (default: "grpc")
64+
protocol: "grpc"
65+
# endpoint is the OTLP collector endpoint
66+
# For gRPC: typically "host:4317", for HTTP: typically "host:4318"
67+
endpoint: ""
68+
# insecure disables TLS for the OTLP connection
69+
# Set to "true" for in-cluster communication without TLS
70+
insecure: "false"
71+
# tracesExporter specifies the traces exporter: "otlp" or "none"
72+
# (default: "none")
73+
tracesExporter: "none"

0 commit comments

Comments
 (0)