Skip to content

Commit

Permalink
feat(otelcol): add startupProbe config option (#2201)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalek committed Mar 21, 2022
1 parent 543f8d4 commit 83f1856
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- feat: add pprof extension for otelcol [#2173][#2173]
- feat: selectively disable cache for metadata enrichment calls [#2190][#2190]
- feat(otelcol): add startupProbe config option [#2201][#2201]

### Changed

Expand All @@ -31,6 +32,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[#2190]: https://github.com/SumoLogic/sumologic-kubernetes-collection/pull/2190
[#2196]: https://github.com/SumoLogic/sumologic-kubernetes-collection/pull/2196
[#2197]: https://github.com/SumoLogic/sumologic-kubernetes-collection/pull/2197
[#2201]: https://github.com/SumoLogic/sumologic-kubernetes-collection/pull/2201

## [v2.6.0][v2.6.0]

Expand Down
2 changes: 2 additions & 0 deletions deploy/helm/sumologic/README.md

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions deploy/helm/sumologic/templates/logs/otelcol/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ spec:
path: /
port: 13133 # Health Check extension default port.
{{- toYaml .Values.metadata.logs.statefulset.containers.otelcol.readinessProbe | nindent 10 }}
startupProbe:
httpGet:
path: /
port: 13133 # Health Check extension default port.
{{- toYaml .Values.metadata.logs.statefulset.containers.otelcol.startupProbe | nindent 10 }}
volumeMounts:
- name: config-volume
mountPath: /etc/otel/config.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ spec:
path: /
port: 13133 # Health Check extension default port.
{{- toYaml .Values.metadata.metrics.statefulset.containers.otelcol.readinessProbe | nindent 10 }}
startupProbe:
httpGet:
path: /
port: 13133 # Health Check extension default port.
{{- toYaml .Values.metadata.metrics.statefulset.containers.otelcol.startupProbe | nindent 10 }}
volumeMounts:
- name: config-volume
mountPath: /etc/otel/config.yaml
Expand Down
6 changes: 6 additions & 0 deletions deploy/helm/sumologic/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3990,6 +3990,9 @@ metadata:
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 3
startupProbe:
periodSeconds: 3
failureThreshold: 60

## Extra Environment Values - allows yaml definitions
# extraEnvVars:
Expand Down Expand Up @@ -4374,6 +4377,9 @@ metadata:
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 3
startupProbe:
periodSeconds: 3
failureThreshold: 60

## Extra Environment Values - allows yaml definitions
# extraEnvVars:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ spec:
failureThreshold: 3
periodSeconds: 10
timeoutSeconds: 3
startupProbe:
httpGet:
path: /
port: 13133 # Health Check extension default port.
failureThreshold: 60
periodSeconds: 3
volumeMounts:
- name: config-volume
mountPath: /etc/otel/config.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ spec:
failureThreshold: 3
periodSeconds: 10
timeoutSeconds: 3
startupProbe:
httpGet:
path: /
port: 13133 # Health Check extension default port.
failureThreshold: 60
periodSeconds: 3
volumeMounts:
- name: config-volume
mountPath: /etc/otel/config.yaml
Expand Down

0 comments on commit 83f1856

Please sign in to comment.