Skip to content

Commit

Permalink
update charts to use debug exporter (#892)
Browse files Browse the repository at this point in the history
* update charts to use debug exporter

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 <aboten@lightstep.com>

* make generate-examples CHARTS=opentelemetry-collector

Signed-off-by: Alex Boten <aboten@lightstep.com>

* update charts

Signed-off-by: Alex Boten <aboten@lightstep.com>

* revert demo charts

Signed-off-by: Alex Boten <aboten@lightstep.com>

* bump version for collector/operator charts

Signed-off-by: Alex Boten <aboten@lightstep.com>

* patch bump

Signed-off-by: Alex Boten <aboten@lightstep.com>

---------

Signed-off-by: Alex Boten <aboten@lightstep.com>
  • Loading branch information
codeboten authored Sep 28, 2023
1 parent 0da85c8 commit b6f9354
Show file tree
Hide file tree
Showing 56 changed files with 131 additions and 131 deletions.
2 changes: 1 addition & 1 deletion charts/opentelemetry-collector/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: opentelemetry-collector
version: 0.69.0
version: 0.69.1
description: OpenTelemetry Collector Helm chart for Kubernetes
type: application
home: https://opentelemetry.io/
Expand Down
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 @@ -6,15 +6,15 @@ metadata:
name: example-opentelemetry-collector-agent
namespace: default
labels:
helm.sh/chart: opentelemetry-collector-0.69.0
helm.sh/chart: opentelemetry-collector-0.69.1
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.86.0"
app.kubernetes.io/managed-by: Helm
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 @@ -6,15 +6,15 @@ metadata:
name: example-opentelemetry-collector
namespace: default
labels:
helm.sh/chart: opentelemetry-collector-0.69.0
helm.sh/chart: opentelemetry-collector-0.69.1
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.86.0"
app.kubernetes.io/managed-by: Helm
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 @@ -6,7 +6,7 @@ metadata:
name: example-opentelemetry-collector-agent
namespace: default
labels:
helm.sh/chart: opentelemetry-collector-0.69.0
helm.sh/chart: opentelemetry-collector-0.69.1
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.86.0"
Expand All @@ -22,7 +22,7 @@ spec:
template:
metadata:
annotations:
checksum/config: f3c2b6098adf53d94516b61468663fa75cf32b764c6bfb0f92bdb1b6acfd246b
checksum/config: a4360f23d611296839b78866ac5a5caf42efb719392023564bf17f421c9b19ee

labels:
app.kubernetes.io/name: opentelemetry-collector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: example-opentelemetry-collector
namespace: default
labels:
helm.sh/chart: opentelemetry-collector-0.69.0
helm.sh/chart: opentelemetry-collector-0.69.1
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.86.0"
Expand All @@ -24,7 +24,7 @@ spec:
template:
metadata:
annotations:
checksum/config: 641f210a491badf97b9a9fee08b8ae4e8f09363c42ab50230cb0083146ae047a
checksum/config: 40b8d63ab75c831ebe21b89abde8d48d42fefc895d21f367c0423a8d836d6fd9

labels:
app.kubernetes.io/name: opentelemetry-collector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: example-opentelemetry-collector
namespace: default
labels:
helm.sh/chart: opentelemetry-collector-0.69.0
helm.sh/chart: opentelemetry-collector-0.69.1
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.86.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: example-opentelemetry-collector
namespace: default
labels:
helm.sh/chart: opentelemetry-collector-0.69.0
helm.sh/chart: opentelemetry-collector-0.69.1
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.86.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ metadata:
name: example-opentelemetry-collector-agent
namespace: default
labels:
helm.sh/chart: opentelemetry-collector-0.69.0
helm.sh/chart: opentelemetry-collector-0.69.1
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.86.0"
app.kubernetes.io/managed-by: Helm
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 @@ -6,7 +6,7 @@ metadata:
name: example-opentelemetry-collector-agent
namespace: default
labels:
helm.sh/chart: opentelemetry-collector-0.69.0
helm.sh/chart: opentelemetry-collector-0.69.1
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.86.0"
Expand All @@ -22,7 +22,7 @@ spec:
template:
metadata:
annotations:
checksum/config: d20c2b586d8cdad2c624d5405a136593cf80b577435599d4f4f946168f266f8c
checksum/config: 8e25f0e1b8b4084e1a5257f962df7cc8d69bf88c6c44afdaeff07b234184b7b4

labels:
app.kubernetes.io/name: opentelemetry-collector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: example-opentelemetry-collector
namespace: default
labels:
helm.sh/chart: opentelemetry-collector-0.69.0
helm.sh/chart: opentelemetry-collector-0.69.1
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.86.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ metadata:
name: example-opentelemetry-collector-agent
namespace: default
labels:
helm.sh/chart: opentelemetry-collector-0.69.0
helm.sh/chart: opentelemetry-collector-0.69.1
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.86.0"
app.kubernetes.io/managed-by: Helm
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 @@ -6,7 +6,7 @@ metadata:
name: example-opentelemetry-collector-agent
namespace: default
labels:
helm.sh/chart: opentelemetry-collector-0.69.0
helm.sh/chart: opentelemetry-collector-0.69.1
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.86.0"
Expand All @@ -22,7 +22,7 @@ spec:
template:
metadata:
annotations:
checksum/config: cd16046cbf7e7c6455264c828bb2a1c214e0d7be6e7cde4849382b4ab6003453
checksum/config: 3465c78014f109a2c9f2e1f2e32050d42ceb45bcda0193ffd7d554985898e185

labels:
app.kubernetes.io/name: opentelemetry-collector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: example-opentelemetry-collector
namespace: default
labels:
helm.sh/chart: opentelemetry-collector-0.69.0
helm.sh/chart: opentelemetry-collector-0.69.1
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.86.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ metadata:
name: example-opentelemetry-collector-agent
namespace: default
labels:
helm.sh/chart: opentelemetry-collector-0.69.0
helm.sh/chart: opentelemetry-collector-0.69.1
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.86.0"
app.kubernetes.io/managed-by: Helm
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 b6f9354

Please sign in to comment.