Skip to content

Commit

Permalink
set proper resources for collector (open-telemetry#273)
Browse files Browse the repository at this point in the history
* set proper resources for collector

* increase resources and bump chart

* bump limits

* generate example

* Update charts/opentelemetry-collector/values.yaml

Co-authored-by: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com>

* generate-examples

* add upgrading example

* change version

* bump version

* bump

* comment

Co-authored-by: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com>
Co-authored-by: birca <birca@adobe.com>
  • Loading branch information
3 people authored Aug 26, 2022
1 parent 10d2b8e commit 1a7f86b
Show file tree
Hide file tree
Showing 46 changed files with 95 additions and 69 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.28.0
version: 0.29.0
description: OpenTelemetry Collector Helm chart for Kubernetes
type: application
home: https://opentelemetry.io/
Expand Down
17 changes: 16 additions & 1 deletion charts/opentelemetry-collector/UPGRADING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Upgrade guidelines

## 0.28.0 to 0.29.0

[Reduce requested resources](https://github.com/open-telemetry/opentelemetry-helm-charts/pull/273)

Resource `limits` have been reduced. Upgrades/installs of chart 0.29.0 will now use fewer resources. In order to set the resources back to what they were, you will need to override the `resources` section in the `values.yaml`.

*Example*:

```yaml
resources:
limits:
cpu: 1
memory: 2Gi
```
## 0.23.1 to 0.24.0
[Remove containerLogs in favor of presets.logsCollection]()
Expand Down Expand Up @@ -78,7 +93,7 @@ See the [daemonset-and-deployment](examples/daemonset-and-deployment) example to

### Migrate to `mode`:

The `agentCollector` and `standaloneCollector` sections in values.yaml have been deprecated. Instead there is a new field, `mode`, that determines if the collector is being installed as a daemonset or deployment.
The `agentCollector` and `standaloneCollector` sections in values.yaml have been deprecated. Instead there is a new field, `mode`, that determines if the collector is being installed as a daemonset or deployment.

```yaml
# Valid values are "daemonset" and "deployment".
Expand Down
1 change: 1 addition & 0 deletions charts/opentelemetry-collector/examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ Here is a collection of common configurations for the OpenTelemetry collector.
- [Add component (hostmetrics)](daemonset-hostmetrics)

The manifests are rendered using the `helm template` command and the specific example folder's values.yaml.

Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ resources:
limits:
cpu: 100m
memory: 200M

Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ resources:
limits:
cpu: 100m
memory: 200M

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: ConfigMap
metadata:
name: example-opentelemetry-collector-agent
labels:
helm.sh/chart: opentelemetry-collector-0.28.0
helm.sh/chart: opentelemetry-collector-0.29.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.58.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: ConfigMap
metadata:
name: example-opentelemetry-collector
labels:
helm.sh/chart: opentelemetry-collector-0.28.0
helm.sh/chart: opentelemetry-collector-0.29.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.58.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: DaemonSet
metadata:
name: example-opentelemetry-collector-agent
labels:
helm.sh/chart: opentelemetry-collector-0.28.0
helm.sh/chart: opentelemetry-collector-0.29.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.58.0"
Expand All @@ -19,7 +19,7 @@ spec:
template:
metadata:
annotations:
checksum/config: f4650242f513449a31f809224037f39a5556e304cc391d722f8444343cb3b739
checksum/config: e218a580a60a3a652d52d9c5108f51ec4f8839fabd41740159695362c2185fed

labels:
app.kubernetes.io/name: opentelemetry-collector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: Deployment
metadata:
name: example-opentelemetry-collector
labels:
helm.sh/chart: opentelemetry-collector-0.28.0
helm.sh/chart: opentelemetry-collector-0.29.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.58.0"
Expand All @@ -21,7 +21,7 @@ spec:
template:
metadata:
annotations:
checksum/config: 4ebc5747b195df8a6142d3ba91cc6c1a08d2baba303a3e559bd68607206b0667
checksum/config: c59fe779f7555ac1fad952a4eca8431a9d6607892e0f759fea56e2fd381be810

labels:
app.kubernetes.io/name: opentelemetry-collector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: Service
metadata:
name: example-opentelemetry-collector
labels:
helm.sh/chart: opentelemetry-collector-0.28.0
helm.sh/chart: opentelemetry-collector-0.29.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.58.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: ServiceAccount
metadata:
name: example-opentelemetry-collector
labels:
helm.sh/chart: opentelemetry-collector-0.28.0
helm.sh/chart: opentelemetry-collector-0.29.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.58.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: ConfigMap
metadata:
name: example-opentelemetry-collector-agent
labels:
helm.sh/chart: opentelemetry-collector-0.28.0
helm.sh/chart: opentelemetry-collector-0.29.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.58.0"
Expand All @@ -17,13 +17,13 @@ data:
extensions:
health_check: {}
memory_ballast:
size_mib: "819"
size_mib: "204"
processors:
batch: {}
memory_limiter:
check_interval: 5s
limit_mib: 1638
spike_limit_mib: 512
limit_mib: 409
spike_limit_mib: 128
receivers:
filelog:
exclude: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: DaemonSet
metadata:
name: example-opentelemetry-collector-agent
labels:
helm.sh/chart: opentelemetry-collector-0.28.0
helm.sh/chart: opentelemetry-collector-0.29.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.58.0"
Expand All @@ -19,7 +19,7 @@ spec:
template:
metadata:
annotations:
checksum/config: be28f8ffe0b6cc708b0659ea338a5a17afebf2cfe7a4370b2ffd2d5fdf239a25
checksum/config: 2f629acdafbe89e5109800a5c7bedf948447afb94965f0646e00c396f6956a69

labels:
app.kubernetes.io/name: opentelemetry-collector
Expand Down Expand Up @@ -81,8 +81,8 @@ spec:
port: 13133
resources:
limits:
cpu: 1
memory: 2Gi
cpu: 256m
memory: 512Mi
volumeMounts:
- mountPath: /conf
name: opentelemetry-collector-configmap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: ServiceAccount
metadata:
name: example-opentelemetry-collector
labels:
helm.sh/chart: opentelemetry-collector-0.28.0
helm.sh/chart: opentelemetry-collector-0.29.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.58.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ presets:
logsCollection:
enabled: true
includeCollectorLogs: true

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: ConfigMap
metadata:
name: example-opentelemetry-collector-agent
labels:
helm.sh/chart: opentelemetry-collector-0.28.0
helm.sh/chart: opentelemetry-collector-0.29.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.58.0"
Expand All @@ -17,13 +17,13 @@ data:
extensions:
health_check: {}
memory_ballast:
size_mib: "819"
size_mib: "204"
processors:
batch: {}
memory_limiter:
check_interval: 5s
limit_mib: 1638
spike_limit_mib: 512
limit_mib: 409
spike_limit_mib: 128
receivers:
hostmetrics:
collection_interval: 10s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: DaemonSet
metadata:
name: example-opentelemetry-collector-agent
labels:
helm.sh/chart: opentelemetry-collector-0.28.0
helm.sh/chart: opentelemetry-collector-0.29.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.58.0"
Expand All @@ -19,7 +19,7 @@ spec:
template:
metadata:
annotations:
checksum/config: 8dd1805d8d9c50cd7014c7da293561bd06cff9b8fa611ce96e2b3cefe42a3f2d
checksum/config: 20d7d0e3dbb0d1d932588a01db1cd2cdbb1339b110b68bb44b519f2f9d5776b7

labels:
app.kubernetes.io/name: opentelemetry-collector
Expand Down Expand Up @@ -93,8 +93,8 @@ spec:
port: 13133
resources:
limits:
cpu: 1
memory: 2Gi
cpu: 256m
memory: 512Mi
volumeMounts:
- mountPath: /conf
name: opentelemetry-collector-configmap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: ServiceAccount
metadata:
name: example-opentelemetry-collector
labels:
helm.sh/chart: opentelemetry-collector-0.28.0
helm.sh/chart: opentelemetry-collector-0.29.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.58.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ mode: daemonset
presets:
hostMetrics:
enabled: true

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: ConfigMap
metadata:
name: example-opentelemetry-collector-agent
labels:
helm.sh/chart: opentelemetry-collector-0.28.0
helm.sh/chart: opentelemetry-collector-0.29.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.58.0"
Expand All @@ -17,13 +17,13 @@ data:
extensions:
health_check: {}
memory_ballast:
size_mib: "819"
size_mib: "204"
processors:
batch: {}
memory_limiter:
check_interval: 5s
limit_mib: 1638
spike_limit_mib: 512
limit_mib: 409
spike_limit_mib: 128
receivers:
jaeger:
protocols:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: DaemonSet
metadata:
name: example-opentelemetry-collector-agent
labels:
helm.sh/chart: opentelemetry-collector-0.28.0
helm.sh/chart: opentelemetry-collector-0.29.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.58.0"
Expand All @@ -19,7 +19,7 @@ spec:
template:
metadata:
annotations:
checksum/config: 5dc276688313240edc02b5c7e09a0d62250bfbe8f4776e4c9efc7e078a88d7b0
checksum/config: 5a22554eb36d1fd2929395003bd88fe35bf07f7f158240c65dbb1bb6ba120359

labels:
app.kubernetes.io/name: opentelemetry-collector
Expand Down Expand Up @@ -87,8 +87,8 @@ spec:
port: 13133
resources:
limits:
cpu: 1
memory: 2Gi
cpu: 256m
memory: 512Mi
volumeMounts:
- mountPath: /conf
name: opentelemetry-collector-configmap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: ServiceAccount
metadata:
name: example-opentelemetry-collector
labels:
helm.sh/chart: opentelemetry-collector-0.28.0
helm.sh/chart: opentelemetry-collector-0.29.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.58.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ lifecycleHooks:
command:
- /test/sleep
- "5"

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: ConfigMap
metadata:
name: example-opentelemetry-collector-agent
labels:
helm.sh/chart: opentelemetry-collector-0.28.0
helm.sh/chart: opentelemetry-collector-0.29.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.58.0"
Expand All @@ -17,13 +17,13 @@ data:
extensions:
health_check: {}
memory_ballast:
size_mib: "819"
size_mib: "204"
processors:
batch: {}
memory_limiter:
check_interval: 5s
limit_mib: 1638
spike_limit_mib: 512
limit_mib: 409
spike_limit_mib: 128
receivers:
jaeger:
protocols:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: DaemonSet
metadata:
name: example-opentelemetry-collector-agent
labels:
helm.sh/chart: opentelemetry-collector-0.28.0
helm.sh/chart: opentelemetry-collector-0.29.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.58.0"
Expand All @@ -19,7 +19,7 @@ spec:
template:
metadata:
annotations:
checksum/config: 5dc276688313240edc02b5c7e09a0d62250bfbe8f4776e4c9efc7e078a88d7b0
checksum/config: 5a22554eb36d1fd2929395003bd88fe35bf07f7f158240c65dbb1bb6ba120359

labels:
app.kubernetes.io/name: opentelemetry-collector
Expand Down Expand Up @@ -81,8 +81,8 @@ spec:
port: 13133
resources:
limits:
cpu: 1
memory: 2Gi
cpu: 256m
memory: 512Mi
volumeMounts:
- mountPath: /conf
name: opentelemetry-collector-configmap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: ServiceAccount
metadata:
name: example-opentelemetry-collector
labels:
helm.sh/chart: opentelemetry-collector-0.28.0
helm.sh/chart: opentelemetry-collector-0.29.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.58.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
mode: daemonset

Loading

0 comments on commit 1a7f86b

Please sign in to comment.