Skip to content

Commit

Permalink
[sre-2065] add opentelemetrycollectors.yaml template
Browse files Browse the repository at this point in the history
  • Loading branch information
12ushan committed Jan 17, 2024
1 parent 5558c07 commit 9ad0bac
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{ if .Values.otel_collector.enabled }}
apiVersion: opentelemetry.io/v1alpha1
kind: OpenTelemetryCollector
metadata:
name: otel-collector
labels:
component: opentelemetry-operator
namespace: {{ .Release.Namespace }}
spec:
config: {{ .Values.otel_collector.config | toYaml }}
{{ end }}
4 changes: 4 additions & 0 deletions charts/opentelemetry-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -272,3 +272,7 @@ instrumentation:
sampler: {}
# type: parentbased_traceidratio
# argument: "1"

otel_collector:
enabled: false
config: {}

0 comments on commit 9ad0bac

Please sign in to comment.