Skip to content
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

Add support for OpenTelemetry to Helm chart #104

Merged
merged 1 commit into from
Jun 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions chart/tenant-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,28 @@ spec:
value: ":{{ .Values.api.listenPort }}"
- name: TENANTAPI_SERVER_SHUTDOWN_GRACE_PERIOD
value: "{{ .Values.api.shutdownGracePeriod }}"
- name: TENANTAPI_TRACING_ENABLED
value: "{{ .Values.api.tracing.enabled }}"
- name: TENANTAPI_TRACING_PROVIDER
value: "{{ .Values.api.tracing.provider }}"
- name: TENANTAPI_TRACING_ENVIRONMENT
value: "{{ .Values.api.tracing.environment }}"
{{- if eq .Values.api.tracing.provider "jaeger" }}
- name: TENANTAPI_TRACING_JAEGER_ENDPOINT
value: "{{ .Values.api.tracing.jaeger.endpoint }}"
- name: TENANTAPI_TRACING_JAEGER_USER
value: "{{ .Values.api.tracing.jaeger.user }}"
- name: TENANTAPI_TRACING_JAEGER_PASSWORD
value: "{{ .Values.api.tracing.jaeger.password }}"
{{- end }}
{{- if eq .Values.api.tracing.provider "otlpgrpc" }}
- name: TENANTAPI_TRACING_OTLP_ENDPOINT
value: "{{ .Values.api.tracing.otlp.endpoint }}"
- name: TENANTAPI_TRACING_OTLP_INSECURE
value: "{{ .Values.api.tracing.otlp.insecure }}"
- name: TENANTAPI_TRACING_OTLP_CERTIFICATE
value: "{{ .Values.api.tracing.otlp.certificate }}"
{{- end }}
{{- with .Values.api.trustedProxies }}
- name: TENANTAPI_SERVER_TRUSTED_PROXIES
value: "{{ join " " . }}"
Expand Down
19 changes: 19 additions & 0 deletions chart/tenant-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,25 @@ api:
# - "1.2.3.4/32"
# - "1.2.3.0/24"

tracing:
# enabled is true if OpenTelemetry tracing should be enabled for permissions-api
enabled: false
# environment is the OpenTelemetry tracing environment to use
environment: ""
# provider is the OpenTelemetry tracing provider to use
provider: stdout
jaeger:
# endpoint is the Jaeger collector to send traces to
endpoint: ""
# user is the user to use when authenticating against the Jaeger deployment
user: ""
# password is the password to use when authenticating against the Jaeger deployment
password: ""
otlp:
# endpoint is the OpenTelemetry Protocol (OTLP) collector endpoint to send traces to
endpoint: ""
# insecure is true if TLS should not be required when sending traces
insecure: false

serviceMonitor:
enabled: false