diff --git a/charts/retool/Chart.yaml b/charts/retool/Chart.yaml index 0e55bae..a28459d 100644 --- a/charts/retool/Chart.yaml +++ b/charts/retool/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: retool description: A Helm chart for Kubernetes type: application -version: 6.11.11 +version: 6.11.12 maintainers: - name: Retool Engineering email: engineering+helm@retool.com diff --git a/charts/retool/templates/deployment_telemetry.yaml b/charts/retool/templates/deployment_telemetry.yaml index a4ba0d0..8938eab 100644 --- a/charts/retool/templates/deployment_telemetry.yaml +++ b/charts/retool/templates/deployment_telemetry.yaml @@ -74,6 +74,13 @@ spec: value: {{ include "retool.telemetry.logSourcePodLabels" . | quote }} - name: RTEL_SEND_TO_RETOOL value: {{ .Values.telemetry.sendToRetool.enabled | quote }} + {{- if .Values.telemetry.sendToRetool.enabled }} + {{- if not .Values.telemetry.sendToRetool.inputs }} + {{ fail "telemetry.sendToRetool.enabled is true, so telemetry.sendToRetool.inputs must contain at least one element" }} + {{- end }} + - name: RTEL_SEND_TO_RETOOL_INPUT_ALLOWLIST + value: {{ join "," .Values.telemetry.sendToRetool.inputs | quote }} + {{- end }} {{- if .Values.telemetry.extraEnv }} {{- .Values.telemetry.extraEnv | toYaml | nindent 10 }} {{- end }} diff --git a/charts/retool/values.yaml b/charts/retool/values.yaml index 04decbe..322f0d8 100644 --- a/charts/retool/values.yaml +++ b/charts/retool/values.yaml @@ -1525,6 +1525,15 @@ telemetry: # Should not be changed except for chart testing. address: "https://telemetry.retool.com:443" + # Only relevant when `telemetry.sendToRetool.enabled = true`. + # Specify which inputs to send to Retool. Must not be empty. + # Available inputs are: + # container_logs - logs from all pods + # metrics - app and infra metrics + # otlp_traces - app request traces + inputs: + - metrics + image: repository: "tryretool/telemetry" diff --git a/values.yaml b/values.yaml index 04decbe..322f0d8 100644 --- a/values.yaml +++ b/values.yaml @@ -1525,6 +1525,15 @@ telemetry: # Should not be changed except for chart testing. address: "https://telemetry.retool.com:443" + # Only relevant when `telemetry.sendToRetool.enabled = true`. + # Specify which inputs to send to Retool. Must not be empty. + # Available inputs are: + # container_logs - logs from all pods + # metrics - app and infra metrics + # otlp_traces - app request traces + inputs: + - metrics + image: repository: "tryretool/telemetry"