Skip to content

Commit

Permalink
update charts to use debug exporter
Browse files Browse the repository at this point in the history
The logging exporter is being deprecated in favour of the debug
exporter. This changes the charts to use that exporter instead.

Note: this will remain in draft until v0.86.0 is released which will be the first
release to include the debug exporter.

Signed-off-by: Alex Boten <[email protected]>
  • Loading branch information
Alex Boten committed Sep 28, 2023
1 parent 0da85c8 commit 8c929c9
Show file tree
Hide file tree
Showing 24 changed files with 85 additions and 85 deletions.
10 changes: 5 additions & 5 deletions charts/opentelemetry-collector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Some care must be taken when using `hostNetwork: true`, as then OpenTelemetry Co
### Default configuration

By default this chart will deploy an OpenTelemetry Collector with three pipelines (logs, metrics and traces)
and logging exporter enabled by default. The collector can be installed either as daemonset (agent), deployment or stateful set.
and debug exporter enabled by default. The collector can be installed either as daemonset (agent), deployment or stateful set.

*Example*: Install collector as a deployment.

Expand Down Expand Up @@ -106,19 +106,19 @@ to read the files where Kubernetes container runtime writes all containers' cons

#### :warning: Warning: Risk of looping the exported logs back into the receiver, causing "log explosion"

The container logs pipeline uses the `logging` console exporter by default.
The container logs pipeline uses the `debug` exporter by default.
Paired with the default `filelog` receiver that receives all containers' console output,
it is easy to accidentally feed the exported logs back into the receiver.

Also note that using the `--log-level=debug` option for the `logging` exporter causes it to output
Also note that using the `--verbosity=detailed` option for the `debug` exporter causes it to output
multiple lines per single received log, which when looped, would amplify the logs exponentially.

To prevent the looping, the default configuration of the receiver excludes logs from the collector's containers.

If you want to include the collector's logs, make sure to replace the `logging` exporter
If you want to include the collector's logs, make sure to replace the `debug` exporter
with an exporter that does not send logs to collector's standard output.

Here's an example `values.yaml` file that replaces the default `logging` exporter on the `logs` pipeline
Here's an example `values.yaml` file that replaces the default `debug` exporter on the `logs` pipeline
with an `otlphttp` exporter that sends the container logs to `https://example.com:55681` endpoint.
It also clears the `filelog` receiver's `exclude` property, for collector logs to be included in the pipeline.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ config:
logs:
exporters:
- otlp
- logging
- debug
metrics:
exporters:
- otlp
- logging
- debug
traces:
exporters:
- otlp
- logging
- debug

resources:
limits:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
data:
relay: |
exporters:
logging: {}
debug: {}
otlp:
endpoint: example-opentelemetry-collector:4317
tls:
Expand Down Expand Up @@ -62,7 +62,7 @@ data:
logs:
exporters:
- otlp
- logging
- debug
processors:
- memory_limiter
- batch
Expand All @@ -71,7 +71,7 @@ data:
metrics:
exporters:
- otlp
- logging
- debug
processors:
- memory_limiter
- batch
Expand All @@ -81,7 +81,7 @@ data:
traces:
exporters:
- otlp
- logging
- debug
processors:
- memory_limiter
- batch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
data:
relay: |
exporters:
logging: {}
debug: {}
extensions:
health_check: {}
memory_ballast:
Expand Down Expand Up @@ -57,15 +57,15 @@ data:
pipelines:
logs:
exporters:
- logging
- debug
processors:
- memory_limiter
- batch
receivers:
- otlp
metrics:
exporters:
- logging
- debug
processors:
- memory_limiter
- batch
Expand All @@ -74,7 +74,7 @@ data:
- prometheus
traces:
exporters:
- logging
- debug
processors:
- memory_limiter
- batch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
data:
relay: |
exporters:
logging: {}
debug: {}
extensions:
health_check: {}
memory_ballast:
Expand Down Expand Up @@ -134,7 +134,7 @@ data:
pipelines:
logs:
exporters:
- logging
- debug
processors:
- memory_limiter
- batch
Expand All @@ -143,7 +143,7 @@ data:
- filelog
metrics:
exporters:
- logging
- debug
processors:
- memory_limiter
- batch
Expand All @@ -152,7 +152,7 @@ data:
- prometheus
traces:
exporters:
- logging
- debug
processors:
- memory_limiter
- batch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
data:
relay: |
exporters:
logging: {}
debug: {}
extensions:
health_check: {}
memory_ballast:
Expand Down Expand Up @@ -103,15 +103,15 @@ data:
pipelines:
logs:
exporters:
- logging
- debug
processors:
- memory_limiter
- batch
receivers:
- otlp
metrics:
exporters:
- logging
- debug
processors:
- memory_limiter
- batch
Expand All @@ -121,7 +121,7 @@ data:
- hostmetrics
traces:
exporters:
- logging
- debug
processors:
- memory_limiter
- batch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
data:
relay: |
exporters:
logging: {}
debug: {}
extensions:
health_check: {}
memory_ballast:
Expand Down Expand Up @@ -57,15 +57,15 @@ data:
pipelines:
logs:
exporters:
- logging
- debug
processors:
- memory_limiter
- batch
receivers:
- otlp
metrics:
exporters:
- logging
- debug
processors:
- memory_limiter
- batch
Expand All @@ -74,7 +74,7 @@ data:
- prometheus
traces:
exporters:
- logging
- debug
processors:
- memory_limiter
- batch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
data:
relay: |
exporters:
logging: {}
debug: {}
extensions:
health_check: {}
memory_ballast:
Expand Down Expand Up @@ -57,15 +57,15 @@ data:
pipelines:
logs:
exporters:
- logging
- debug
processors:
- memory_limiter
- batch
receivers:
- otlp
metrics:
exporters:
- logging
- debug
processors:
- memory_limiter
- batch
Expand All @@ -74,7 +74,7 @@ data:
- prometheus
traces:
exporters:
- logging
- debug
processors:
- memory_limiter
- batch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
data:
relay: |
exporters:
logging: {}
debug: {}
extensions:
health_check: {}
memory_ballast:
Expand Down Expand Up @@ -57,15 +57,15 @@ data:
pipelines:
logs:
exporters:
- logging
- debug
processors:
- memory_limiter
- batch
receivers:
- otlp
metrics:
exporters:
- logging
- debug
processors:
- memory_limiter
- batch
Expand All @@ -74,7 +74,7 @@ data:
- prometheus
traces:
exporters:
- logging
- debug
processors:
- memory_limiter
- batch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
data:
relay: |
exporters:
logging: {}
debug: {}
extensions:
health_check: {}
memory_ballast:
Expand All @@ -39,7 +39,7 @@ data:
pipelines:
traces:
exporters:
- logging
- debug
processors:
- memory_limiter
- batch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
data:
relay: |
exporters:
logging: {}
debug: {}
extensions:
health_check: {}
memory_ballast:
Expand Down Expand Up @@ -80,7 +80,7 @@ data:
pipelines:
logs:
exporters:
- logging
- debug
processors:
- k8sattributes
- memory_limiter
Expand All @@ -89,7 +89,7 @@ data:
- otlp
metrics:
exporters:
- logging
- debug
processors:
- k8sattributes
- memory_limiter
Expand All @@ -99,7 +99,7 @@ data:
- prometheus
traces:
exporters:
- logging
- debug
processors:
- resource
- k8sattributes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
data:
relay: |
exporters:
logging: {}
debug: {}
extensions:
health_check: {}
memory_ballast:
Expand Down Expand Up @@ -57,15 +57,15 @@ data:
pipelines:
logs:
exporters:
- logging
- debug
processors:
- memory_limiter
- batch
receivers:
- otlp
metrics:
exporters:
- logging
- debug
processors:
- memory_limiter
- batch
Expand All @@ -74,7 +74,7 @@ data:
- prometheus
traces:
exporters:
- logging
- debug
processors:
- memory_limiter
- batch
Expand Down
Loading

0 comments on commit 8c929c9

Please sign in to comment.