Skip to content

Commit

Permalink
kamu-api-server: OpenTelemetry endpoint configuration (#57)
Browse files Browse the repository at this point in the history
* Add HOST_IP  environment variable for Kamu API server
* Implement OpenTelemetry endpoint configuration for Kamu API server
* Add default value for OpenTelemetry url

---------

Co-authored-by: Kristina Bugaienko <kr.bugaienko@gmail.com>
  • Loading branch information
cutwater and kbugaienko authored Sep 17, 2024
1 parent 8abb1a0 commit 7e2a83e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/kamu-api-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: kamu-api-server
description: API server component of the Kamu Compute Node
type: application
version: 0.37.1
appVersion: "0.37.1"
appVersion: "0.37.2"
home: https://kamu.dev
icon: https://www.kamu.dev/images/kamu_logo_icon_bg_square.png
sources:
Expand Down
8 changes: 8 additions & 0 deletions charts/kamu-api-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ spec:
value: "1"
- name: RUST_LOG
value: {{ .Values.app.logLevel | quote }}
- name: HOST_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
{{- if .Values.opentelemetry.enabled }}
- name: KAMU_OTEL_OTLP_ENDPOINT
value: {{ .Values.opentelemetry.url }}
{{- end }}
{{- if .Values.app.awsCredentials.enabled }}
{{- $secretName := include "kamu-api-server.awsCredentialsSecretName" . }}
- name: AWS_ENDPOINT
Expand Down
4 changes: 4 additions & 0 deletions charts/kamu-api-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template
name: ""

opentelemetry:
enabled: false
url: "http://$(HOST_IP):4317"

extraEnv: []
extraEnvFrom: []

Expand Down

0 comments on commit 7e2a83e

Please sign in to comment.