Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add batching to otelcol log collector #2018

Merged
merged 3 commits into from
Jan 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- feat: add batching to experimental otelcol log collector [#2018][#2018]
- feat: add experimental otelcol log collector [#1986][#1986]
- feat: add option to disable pod owners enrichment [#1959][#1959]

Expand All @@ -33,6 +34,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[#1992]: https://github.com/SumoLogic/sumologic-kubernetes-collection/pull/1992
[#1993]: https://github.com/SumoLogic/sumologic-kubernetes-collection/pull/1993
[#2013]: https://github.com/SumoLogic/sumologic-kubernetes-collection/pull/2013
[#2018]: https://github.com/SumoLogic/sumologic-kubernetes-collection/pull/2018

## [v2.3.1][v2_3_1] - 2021-12-14

Expand Down
11 changes: 11 additions & 0 deletions deploy/helm/sumologic/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4176,6 +4176,8 @@ otellogs:
logs/containers:
receivers:
- filelog/containers
processors:
- batch
exporters:
- otlphttp
receivers:
Expand Down Expand Up @@ -4322,6 +4324,15 @@ otellogs:
exporters:
otlphttp:
endpoint: http://${LOGS_METADATA_SVC}.${NAMESPACE}.svc.cluster.local:4318
processors:
## The batch processor accepts spans and places them into batches grouped by node and resource
batch:
## Number of spans after which a batch will be sent regardless of time
## This is set to the same value as in the metadata enricher
## TODO: Figure out what the optimal values should be for different configurations
send_batch_size: 256
## Time duration after which a batch will be sent regardless of size
timeout: 1s
daemonset:
## Set securityContext for containers running in pods in log collector daemonset
securityContext:
Expand Down
6 changes: 6 additions & 0 deletions tests/helm/logs_otc/static/basic.output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ data:
directory: /var/lib/storage/otc
timeout: 10s
health_check: {}
processors:
batch:
send_batch_size: 256
timeout: 1s
receivers:
filelog/containers:
include:
Expand Down Expand Up @@ -60,6 +64,8 @@ data:
logs/containers:
exporters:
- otlphttp
processors:
- batch
receivers:
- filelog/containers
telemetry:
Expand Down