Skip to content

Commit

Permalink
chore: Upgrade otel collector to v108 (#3855)
Browse files Browse the repository at this point in the history
* chore: Upgrading otel to v0.108.0-sumo-0

* chore: Update documentation

* fix: the otel collector is now strict about type checking

* Remove the otelsvc metrics from the default list
  • Loading branch information
rnishtala-sumo authored Oct 10, 2024
1 parent 91f005e commit e11f6db
Show file tree
Hide file tree
Showing 41 changed files with 45 additions and 51 deletions.
1 change: 1 addition & 0 deletions .changelog/3855.changed.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
chore: Upgrading otel to v0.108.0-sumo-0
4 changes: 2 additions & 2 deletions deploy/helm/sumologic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ The following table lists the configurable parameters of the Sumo Logic chart an
| `sumologic.noProxy` | List of comma separated hostnames which should be excluded from the proxy | `kubernetes.default.svc` |
| `sumologic.pullSecrets` | Optional list of secrets that will be used for pulling images for Sumo Logic's deployments and statefulsets. | `Nil` |
| `sumologic.otelcolImage.repository` | Default image repository for OpenTelemetry Collector. This can be overridden for specific components. | `public.ecr.aws/sumologic/sumologic-otel-collector` |
| `sumologic.otelcolImage.tag` | Default image tag for OpenTelemetry Collector. This can be overridden for specific components. | `0.104.0-sumo-1` |
| `sumologic.otelcolImage.tag` | Default image tag for OpenTelemetry Collector. This can be overridden for specific components. | `0.108.0-sumo-0` |
| `sumologic.otelcolImage.addFipsSuffix` | Add a `-fips` suffix to all image tags. See [help.sumologic.com/docs/send-data/kubernetes/security-best-practices](https://help.sumologic.com/docs/send-data/kubernetes/security-best-practices/) for more information. | `false` |
| `sumologic.podLabels` | Additional labels for the pods. | `{}` |
| `sumologic.podAnnotations` | Additional annotations for the pods. | `{}` |
Expand Down Expand Up @@ -322,7 +322,7 @@ The following table lists the configurable parameters of the Sumo Logic chart an
| `opentelemetry-operator.manager.autoInstrumentationImage.nodejs.tag` | OpenTelemetry Operator NodeJS Instrumentation image tag. | `0.40.0` |
| `opentelemetry-operator.manager.image.repository` | The default operator image repository for OpenTelemetry. | `public.ecr.aws/sumologic/opentelemetry-operator` |
| `opentelemetry-operator.manager.collectorImage.repository` | The default collector image repository for OpenTelemetryCollector CRDs. | `public.ecr.aws/sumologic/sumologic-otel-collector` |
| `opentelemetry-operator.manager.collectorImage.tag` | The default collector image tag for OpenTelemetryCollector CRDs. | `0.104.0-sumo-1` |
| `opentelemetry-operator.manager.collectorImage.tag` | The default collector image tag for OpenTelemetryCollector CRDs. | `0.108.0-sumo-0` |
| `opentelemetry-operator.manager.resources.limits.cpu` | Used to set limit CPU for OpenTelemetry-Operator Manager. | `250m` |
| `opentelemetry-operator.manager.resources.limits.memory` | Used to set limit Memory for OpenTelemetry-Operator Manager. | `512Mi` |
| `opentelemetry-operator.manager.resources.requests.cpu` | Used to set requested CPU for OpenTelemetry-Operator Manager. | `150m` |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ exporters:
resolver:
dns:
hostname: '{{ include "tracesgateway.exporter.loadbalancing.endpoint" . }}'
port: 4317
port: '4317'
{{- end }}
receivers:
jaeger:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exporters:
resolver:
dns:
hostname: '{{ include "tracesgateway.exporter.loadbalancing.endpoint" . }}'
port: 4317
port: '4317'

receivers:
otlp:
Expand Down
8 changes: 4 additions & 4 deletions deploy/helm/sumologic/conf/metrics/otelcol/processors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ memory_limiter:
metricstransform:
transforms:
## rename all prometheus_remote_write_$name metrics to $name
action: update
include: ^prometheus_remote_write_(.*)$$
match_type: regexp
new_name: $$1
- action: update
include: ^prometheus_remote_write_(.*)$$
match_type: regexp
new_name: $$1

## Configuration for Resource Processor
resource:
Expand Down
4 changes: 2 additions & 2 deletions deploy/helm/sumologic/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ sumologic:
### Global configuration for OpenTelemetry Collector
otelcolImage:
repository: "public.ecr.aws/sumologic/sumologic-otel-collector"
tag: "0.104.0-sumo-1"
tag: "0.108.0-sumo-0"

## Add a -fips suffix to all image tags. With default tags, this results in FIPS-compliant otel images.
## See https://github.com/SumoLogic/sumologic-otel-collector/blob/main/docs/fips.md for more information.
Expand Down Expand Up @@ -2487,7 +2487,7 @@ opentelemetry-operator:
repository: public.ecr.aws/sumologic/opentelemetry-operator
collectorImage:
repository: "public.ecr.aws/sumologic/sumologic-otel-collector"
tag: "0.104.0-sumo-1"
tag: "0.108.0-sumo-0"
autoInstrumentationImage:
java:
repository: public.ecr.aws/sumologic/autoinstrumentation-java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ spec:
priorityClassName: "prio"
containers:
- name: otelcol
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.104.0-sumo-1"
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.108.0-sumo-0"
imagePullPolicy: IfNotPresent
args:
- --config=/etc/otel/config.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ spec:
fsGroup: 999
containers:
- name: otelcol
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.104.0-sumo-1"
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.108.0-sumo-0"
imagePullPolicy: IfNotPresent
args:
- --config=/etc/otel/config.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ spec:
fsGroup: 999
containers:
- name: otelcol
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.104.0-sumo-1"
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.108.0-sumo-0"
imagePullPolicy: IfNotPresent
args:
- --config=/etc/otel/config.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
fsGroup: 999
containers:
- name: otelcol
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.104.0-sumo-1"
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.108.0-sumo-0"
imagePullPolicy: IfNotPresent
args:
- --config=/etc/otelcol/config.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ spec:
containers:
- args:
- --config=/etc/otelcol/config.yaml
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.104.0-sumo-1"
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.108.0-sumo-0"
imagePullPolicy: IfNotPresent
name: otelcol
livenessProbe:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ spec:
containers:
- args:
- --config=/etc/otelcol/config.yaml
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.104.0-sumo-1"
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.108.0-sumo-0"
imagePullPolicy: IfNotPresent
name: otelcol
livenessProbe:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
containers:
- args:
- --config=/etc/otelcol/config.yaml
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.104.0-sumo-1"
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.108.0-sumo-0"
imagePullPolicy: IfNotPresent
name: otelcol
livenessProbe:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ spec:
- "otelcol-sumo.exe"
args:
- --config=etc/otelcol/config.yaml
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.104.0-sumo-1"
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.108.0-sumo-0"
imagePullPolicy: IfNotPresent
name: otelcol
livenessProbe:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ spec:
- "otelcol-sumo.exe"
args:
- --config=etc/otelcol/config.yaml
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.104.0-sumo-1"
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.108.0-sumo-0"
imagePullPolicy: IfNotPresent
name: otelcol
livenessProbe:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
- "otelcol-sumo.exe"
args:
- --config=etc/otelcol/config.yaml
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.104.0-sumo-1"
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.108.0-sumo-0"
imagePullPolicy: IfNotPresent
name: otelcol
livenessProbe:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
fsGroup: 999
containers:
- name: otelcol
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.104.0-sumo-1"
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.108.0-sumo-0"
imagePullPolicy: IfNotPresent
args:
- --config=/etc/otel/config.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ data:
spike_limit_percentage: 20
metricstransform:
transforms:
action: update
- action: update
include: ^prometheus_remote_write_(.*)$$
match_type: regexp
new_name: $$1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ data:
spike_limit_percentage: 20
metricstransform:
transforms:
action: update
- action: update
include: ^prometheus_remote_write_(.*)$$
match_type: regexp
new_name: $$1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ data:
spike_limit_percentage: 20
metricstransform:
transforms:
action: update
- action: update
include: ^prometheus_remote_write_(.*)$$
match_type: regexp
new_name: $$1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ data:
spike_limit_percentage: 20
metricstransform:
transforms:
action: update
- action: update
include: ^prometheus_remote_write_(.*)$$
match_type: regexp
new_name: $$1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ data:
spike_limit_percentage: 20
metricstransform:
transforms:
action: update
- action: update
include: ^prometheus_remote_write_(.*)$$
match_type: regexp
new_name: $$1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ data:
spike_limit_percentage: 20
metricstransform:
transforms:
action: update
- action: update
include: ^prometheus_remote_write_(.*)$$
match_type: regexp
new_name: $$1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ data:
spike_limit_percentage: 20
metricstransform:
transforms:
action: update
- action: update
include: ^prometheus_remote_write_(.*)$$
match_type: regexp
new_name: $$1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ data:
spike_limit_percentage: 20
metricstransform:
transforms:
action: update
- action: update
include: ^prometheus_remote_write_(.*)$$
match_type: regexp
new_name: $$1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ spec:
fsGroup: 999
containers:
- name: otelcol
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.104.0-sumo-1"
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.108.0-sumo-0"
imagePullPolicy: IfNotPresent
args:
- --config=/etc/otel/config.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ metadata:
heritage: "Helm"
sumologic.com/scrape: "true"
spec:
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.104.0-sumo-1"
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.108.0-sumo-0"
mode: statefulset
replicas: 1
serviceAccount: RELEASE-NAME-sumologic-metrics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ metadata:
heritage: "Helm"
sumologic.com/scrape: "true"
spec:
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.104.0-sumo-1"
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.108.0-sumo-0"
mode: statefulset
replicas: 1
serviceAccount: RELEASE-NAME-sumologic-metrics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ metadata:
heritage: "Helm"
sumologic.com/scrape: "true"
spec:
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.104.0-sumo-1"
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.108.0-sumo-0"
mode: statefulset
replicas: 1
serviceAccount: RELEASE-NAME-sumologic-metrics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ data:
resolver:
dns:
hostname: RELEASE-NAME-sumologic-traces-sampler-headless.sumologic
port: 4317
port: "4317"
sumologic/metrics:
client: k8s_%CURRENT_CHART_VERSION%
compression: gzip
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ data:
resolver:
dns:
hostname: RELEASE-NAME-sumologic-traces-sampler-headless.sumologic
port: 4317
port: "4317"
sumologic/metrics:
client: k8s_%CURRENT_CHART_VERSION%
compression: gzip
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ data:
resolver:
dns:
hostname: RELEASE-NAME-sumologic-traces-sampler-headless.sumologic
port: 4317
port: "4317"
sumologic/metrics:
client: k8s_%CURRENT_CHART_VERSION%
compression: gzip
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ spec:
fsGroup: 999
containers:
- name: otelcol
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.104.0-sumo-1"
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.108.0-sumo-0"
imagePullPolicy: IfNotPresent
args:
- "--config=/conf/otelcol.instrumentation.conf.yaml"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
restartPolicy: Always
containers:
- name: otelcol
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.104.0-sumo-1"
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.108.0-sumo-0"
imagePullPolicy: IfNotPresent
args:
- "--config=/conf/traces.gateway.conf.yaml"
Expand Down
Loading

0 comments on commit e11f6db

Please sign in to comment.