Skip to content

Commit

Permalink
Merge pull request #644 from kubescape/otel
Browse files Browse the repository at this point in the history
use a noop exporter for logs instead of disabling
  • Loading branch information
matthyx authored Mar 11, 2025
2 parents db3fad1 + 2de2815 commit 5094193
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
9 changes: 9 additions & 0 deletions charts/kubescape-operator/assets/otel-collector-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ processors:

# exporters configure how to send processed data to one or more backends.
exporters:
debug/noop:
verbosity: basic
sampling_initial: 0
sampling_thereafter: 0
otlp/ksCloud:
{{- if $configurations.ksOtel }}
endpoint: ${env:CLOUD_OTEL_COLLECTOR_URL}
Expand Down Expand Up @@ -81,3 +85,8 @@ service:
{{- if $configurations.otel }}
- otlp
{{- end }}
logs:
receivers: [otlp]
processors: [attributes/ksCloud, batch]
exporters:
- debug/noop
Original file line number Diff line number Diff line change
Expand Up @@ -8581,6 +8581,10 @@ default capabilities:

# exporters configure how to send processed data to one or more backends.
exporters:
debug/noop:
verbosity: basic
sampling_initial: 0
sampling_thereafter: 0
otlp/ksCloud:
endpoint: ${env:CLOUD_OTEL_COLLECTOR_URL}
tls:
Expand All @@ -8605,6 +8609,11 @@ default capabilities:
processors: [attributes/ksCloud, batch]
exporters:
- otlp/ksCloud
logs:
receivers: [otlp]
processors: [attributes/ksCloud, batch]
exporters:
- debug/noop
kind: ConfigMap
metadata:
labels:
Expand Down Expand Up @@ -8653,7 +8662,7 @@ default capabilities:
template:
metadata:
annotations:
checksum/otel-config: 8a1e37e09cb696e8f8e797b73826c5342432714510487f981514cc3e985ff563
checksum/otel-config: 75aa6667d9113e91bff2966bfdb24376a54f9c7167f7073f8d1adcf26972483b
checksum/proxy-config: 3669c08e51ef779cd00a107f19592b34195c3ebdb60bedaf8ebf1491a3f2a747
labels:
app: otel-collector
Expand Down Expand Up @@ -12756,6 +12765,10 @@ disable otel:

# exporters configure how to send processed data to one or more backends.
exporters:
debug/noop:
verbosity: basic
sampling_initial: 0
sampling_thereafter: 0
otlp/ksCloud:
endpoint: ${env:CLOUD_OTEL_COLLECTOR_URL}
tls:
Expand All @@ -12780,6 +12793,11 @@ disable otel:
processors: [attributes/ksCloud, batch]
exporters:
- otlp/ksCloud
logs:
receivers: [otlp]
processors: [attributes/ksCloud, batch]
exporters:
- debug/noop
kind: ConfigMap
metadata:
labels:
Expand Down Expand Up @@ -12828,7 +12846,7 @@ disable otel:
template:
metadata:
annotations:
checksum/otel-config: 8a1e37e09cb696e8f8e797b73826c5342432714510487f981514cc3e985ff563
checksum/otel-config: 75aa6667d9113e91bff2966bfdb24376a54f9c7167f7073f8d1adcf26972483b
labels:
app: otel-collector
app.kubernetes.io/component: otel-collector
Expand Down

0 comments on commit 5094193

Please sign in to comment.