Skip to content

Commit ba2c81c

Browse files
authored
chore(helm,otel): update OTEL deployment (#1338)
Because - the `core` Helm chart needs to update on the OpenTelemetry setup. This commit - aligns Docker Compose OpenTelemetry configuration > [!NOTE] > INS-8333 (PR #1337) is based on this PR feature branch.
1 parent 7602f8c commit ba2c81c

File tree

18 files changed

+98
-81
lines changed

18 files changed

+98
-81
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ MINIO_CONSOLE_HOST_PORT=19001
210210

211211
# OpenTelemetry Collector
212212
OTEL_COLLECTOR_IMAGE=otel/opentelemetry-collector-contrib
213-
OTEL_COLLECTOR_VERSION=0.128.0
213+
OTEL_COLLECTOR_VERSION=0.129.0
214214
OTEL_COLLECTOR_HOST=otel-collector
215215
OTEL_COLLECTOR_PORT=4317
216216
OTEL_COLLECTOR_PROMETHEUS_PORT=9001

Makefile.helper

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ define HELM
3232
@helm install ${HELM_RELEASE_NAME} charts/core \
3333
--namespace ${HELM_NAMESPACE} --create-namespace \
3434
--set edition=$(if $(filter true,$(1)),k8s-ce:test,k8s-ce) \
35-
--set mgmtBackend.instillCoreHost=http://${INSTILL_CORE_HOST}:${API_GATEWAY_PORT} \
36-
--set artifactBackend.instillCoreHost=http://${INSTILL_CORE_HOST}:${API_GATEWAY_PORT} \
35+
--set tags.observability=$(OBSERVE_ENABLED) \
3736
--set pipelineBackend.instillCoreHost=http://${INSTILL_CORE_HOST}:${API_GATEWAY_PORT} \
37+
--set artifactBackend.instillCoreHost=http://${INSTILL_CORE_HOST}:${API_GATEWAY_PORT} \
3838
--set modelBackend.instillCoreHost=http://${INSTILL_CORE_HOST}:${API_GATEWAY_PORT} \
39+
--set mgmtBackend.instillCoreHost=http://${INSTILL_CORE_HOST}:${API_GATEWAY_PORT} \
3940
$(if $(filter true,$(1)),--set ray-cluster.head.autoscaling.enableInTreeAutoscaling=false,) \
4041
$(if $(filter true,$(1)),--set ray-cluster.head.resources.requests.cpu=0,) \
4142
$(if $(filter true,$(1)),--set ray-cluster.head.resources.requests.memory=0,) \

charts/core/Chart.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ dependencies:
1616
version: 8.5.1
1717
- name: opentelemetry-collector
1818
repository: https://open-telemetry.github.io/opentelemetry-helm-charts
19-
version: 0.119.0
19+
version: 0.129.0
2020
- name: kube-prometheus-stack
2121
repository: https://prometheus-community.github.io/helm-charts
2222
version: 70.3.0
23-
digest: sha256:d5ac0a0622d650e502e16aa7945f82ded2cfe62669792cb4dd9ccc8b900d87a9
24-
generated: "2025-07-27T00:27:03.685644+01:00"
23+
digest: sha256:0a00b79854d8ea609ed566b50e1ba1ad24fa6edd4e5d5701a14133f4a9533c9f
24+
generated: "2025-07-30T00:52:08.163458+01:00"

charts/core/Chart.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ dependencies:
4040
condition: elasticsearch.enabled
4141
- name: opentelemetry-collector
4242
repository: https://open-telemetry.github.io/opentelemetry-helm-charts
43-
version: 0.119.0
44-
condition: opentelemetry-collector.enabled
43+
version: 0.129.0
44+
tags:
45+
- observability
4546
- name: kube-prometheus-stack
4647
repository: https://prometheus-community.github.io/helm-charts
4748
version: 70.3.0
48-
condition: kube-prometheus-stack.enabled
49+
tags:
50+
- observability

charts/core/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The Helm chart of Instill Core
1010
|------------|------|---------|
1111
| https://helm.elastic.co | elasticsearch | 8.5.1 |
1212
| https://helm.influxdata.com | influxdb2 | 2.1.1 |
13-
| https://open-telemetry.github.io/opentelemetry-helm-charts | opentelemetry-collector | 0.119.0 |
13+
| https://open-telemetry.github.io/opentelemetry-helm-charts | opentelemetry-collector | 0.129.0 |
1414
| https://prometheus-community.github.io/helm-charts | kube-prometheus-stack | 70.3.0 |
1515
| https://ray-project.github.io/kuberay-helm | kuberay-operator | 1.3.2 |
1616
| https://ray-project.github.io/kuberay-helm | ray-cluster | 1.3.2 |

charts/core/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ OpenTelemetry
413413
{{- end -}}
414414

415415
{{- define "core.otel.port" -}}
416-
{{- printf "8095" -}}
416+
{{- printf "4317" -}}
417417
{{- end -}}
418418

419419
{{/*

charts/core/templates/api-gateway/configmap.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,18 @@ metadata:
44
name: {{ include "core.apiGateway" . }}
55
data:
66
.env: |-
7+
78
LOG_LEVEL={{ upper .Values.logLevel }}
89
10+
# Enable observability stack
11+
OBSERVE_ENABLED={{ .Values.tags.observability }}
12+
13+
# Service version
14+
SERVICE_VERSION={{ .Values.apiGateway.image.tag }}
15+
16+
# Deploy environment
17+
DEPLOY_ENV={{ .Values.edition }}
18+
919
# api-gateway
1020
API_GATEWAY_HOST={{ include "core.apiGateway" . }}
1121
API_GATEWAY_PORT={{ include "core.apiGateway.httpPort" . }}

charts/core/templates/api-gateway/deployment.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,16 @@ spec:
9696
path: /__health
9797
scheme: {{ upper (ternary "https" "http" .Values.apiGateway.tls.enabled) }}
9898
port: {{ ternary "https" "http" .Values.apiGateway.tls.enabled }}
99-
periodSeconds: 10
100-
initialDelaySeconds: 60
99+
periodSeconds: 5
100+
initialDelaySeconds: 10
101101
livenessProbe:
102102
httpGet:
103103
path: /__health
104104
scheme: {{ upper (ternary "https" "http" .Values.apiGateway.tls.enabled) }}
105105
port: {{ ternary "https" "http" .Values.apiGateway.tls.enabled }}
106-
periodSeconds: 10
107-
initialDelaySeconds: 60
106+
periodSeconds: 5
107+
initialDelaySeconds: 10
108+
timeoutSeconds: 5
108109
{{- if .Values.apiGateway.resources }}
109110
resources:
110111
{{- toYaml .Values.apiGateway.resources | nindent 12 }}

charts/core/templates/artifact-backend/configmap.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,10 @@ data:
5353
https:
5454
cert:
5555
key:
56-
log:
57-
external: false
58-
otelcollector:
59-
host: {{ include "core.otel" . }}
60-
port: {{ include "core.otel.port" . }}
56+
otelcollector:
57+
enable: {{ .Values.tags.observability }}
58+
host: {{ include "core.otel" . }}
59+
port: {{ include "core.otel.port" . }}
6160
openfga:
6261
host: {{ include "core.openfga" . }}
6362
port: 8081

charts/core/templates/artifact-backend/deployment.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,17 @@ spec:
117117
path: /v1alpha/__readiness
118118
scheme: {{ ternary "https" "http" .Values.internalTLS.enabled | upper }}
119119
port: {{ ternary "https" "http" .Values.internalTLS.enabled }}-public
120-
periodSeconds: 10
120+
periodSeconds: 5
121+
initialDelaySeconds: 10
122+
timeoutSeconds: 5
121123
livenessProbe:
122124
httpGet:
123125
path: /v1alpha/__liveness
124126
scheme: {{ ternary "https" "http" .Values.internalTLS.enabled | upper }}
125127
port: {{ ternary "https" "http" .Values.internalTLS.enabled }}-public
126-
periodSeconds: 10
128+
periodSeconds: 5
129+
initialDelaySeconds: 10
130+
timeoutSeconds: 5
127131
{{- if .Values.artifactBackend.resources }}
128132
resources:
129133
{{- toYaml .Values.artifactBackend.resources | nindent 12 }}

0 commit comments

Comments
 (0)