Skip to content

Commit

Permalink
fix(logs): reduce the queue size of the logs collector
Browse files Browse the repository at this point in the history
  • Loading branch information
swiatekm-sumo committed Mar 9, 2023
1 parent f89557a commit 08d25f0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .changelog/2923.fixed.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix(logs): reduce the queue size of the logs collector
2 changes: 2 additions & 0 deletions deploy/helm/sumologic/conf/logs/collector/otelcol/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ receivers:
exporters:
otlphttp:
endpoint: http://${LOGS_METADATA_SVC}.${NAMESPACE}.svc.cluster.local.:4318
sending_queue:
queue_size: 10
processors:
batch:
send_batch_size: 1000
Expand Down
4 changes: 3 additions & 1 deletion tests/helm/testdata/goldenfile/logs_otc/basic.output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ data:
exporters:
otlphttp:
endpoint: http://${LOGS_METADATA_SVC}.${NAMESPACE}.svc.cluster.local.:4318
sending_queue:
queue_size: 10
extensions:
file_storage:
compaction:
Expand Down Expand Up @@ -115,7 +117,7 @@ data:
type: regex_parser
- combine_field: body.log
combine_with: |2+
id: merge-multiline-logs
is_first_entry: body.log matches "^\\[?\\d{4}-\\d{1,2}-\\d{1,2}.\\d{2}:\\d{2}:\\d{2}"
output: extract-metadata-from-filepath
Expand Down
2 changes: 2 additions & 0 deletions tests/helm/testdata/goldenfile/logs_otc/options.output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ data:
exporters:
otlphttp:
endpoint: http://${LOGS_METADATA_SVC}.${NAMESPACE}.svc.cluster.local.:4318
sending_queue:
queue_size: 10
extensions:
file_storage:
compaction:
Expand Down

0 comments on commit 08d25f0

Please sign in to comment.