Skip to content

Commit

Permalink
Merge pull request #1491 from flanksource/otel-char
Browse files Browse the repository at this point in the history
chore: add otel_collector to chart
  • Loading branch information
moshloop authored Dec 12, 2023
2 parents 4cf37ee + 20c6827 commit 2b3b9cf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 7 additions & 1 deletion chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,13 @@ spec:
{{- end}}
{{- end }}
{{- if ne .Values.prometheusURL "" }}
- --prometheus={{ .Values.prometheusURL }}
- --prometheus={{ tpl .Values.prometheusURL . }}
{{- end }}
{{- if .Values.otel.collector }}
- --otel-collector-url={{ tpl .Values.otel.collector . | default "" }}
{{- end }}
{{- if .Values.otel.serviceName }}
- --otel-service-name={{ tpl .Values.otel.serviceName . | default "canary-checker" }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
Expand Down
5 changes: 5 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ logLevel: "-v"
# restrict canary-checker to monitor single namespace for canaries. Leave blank to monitor all namespaces
canaryNamespace: ""

otel:
# OpenTelemetry gRPC collector endpoint in host:port format
collector: ""
serviceName: canary-checker

db:
runMigrations: true
embedded:
Expand Down

0 comments on commit 2b3b9cf

Please sign in to comment.