Skip to content

Commit 4e50f49

Browse files
authored
migration: move clickhouseDatabase setting from hyperdx to otel values (#27)
1 parent fddc374 commit 4e50f49

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

charts/hdx-oss-v2/templates/otel-collector-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ spec:
4141
- name: HYPERDX_LOG_LEVEL
4242
value: {{ .Values.hyperdx.logLevel }}
4343
- name: HYPERDX_OTEL_EXPORTER_CLICKHOUSE_DATABASE
44-
value: {{ .Values.hyperdx.clickhouseDatabase | default "default" }}
44+
value: {{ .Values.otel.clickhouseDatabase | default "default" }}
4545
- name: HYPERDX_API_KEY
4646
valueFrom:
4747
secretKeyRef:

charts/hdx-oss-v2/tests/otel-collector_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,9 @@ tests:
338338
otel:
339339
enabled: true
340340
image: hyperdx/hyperdx-otel-collector:2-beta
341+
clickhouseDatabase: "custom_db"
341342
hyperdx:
342343
logLevel: info
343-
clickhouseDatabase: "custom_db"
344344
clickhouse:
345345
config:
346346
users:

charts/hdx-oss-v2/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ hyperdx:
1414
usageStatsEnabled: true
1515
# Endpoint to send hyperdx logs/traces/metrics to.Defaults to the chart's otel collector endpoint.
1616
otelExporterEndpoint: http://{{ include "hdx-oss.fullname" . }}-otel-collector:{{ .Values.otel.httpPort }}
17-
# Clickhouse database to send logs/traces/metrics to. Defaults to "default"
18-
clickhouseDatabase: "default"
1917
annotations: {}
2018
# myAnnotation: "myValue"
2119
labels: {}
@@ -204,6 +202,8 @@ otel:
204202
# Leave empty if prometheus is disabled.
205203
# Example: clickhousePrometheusEndpoint: "http://custom-clickhouse-service:9363"
206204
clickhousePrometheusEndpoint:
205+
# Clickhouse database to send logs/traces/metrics to. Defaults to "default"
206+
clickhouseDatabase: "default"
207207

208208
persistence:
209209
mongodb:

0 commit comments

Comments
 (0)