Skip to content

Commit 2502c59

Browse files
committed
Update batch processor defaults
1 parent e0a9466 commit 2502c59

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

internal/config/defaults.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ const (
6262
DefCollectorTLSCAPath = "/var/lib/nginx-agent/ca.pem"
6363
DefCollectorTLSSANNames = "127.0.0.1,::1,localhost"
6464

65-
DefCollectorBatchProcessorSendBatchSize = 8192
66-
DefCollectorBatchProcessorSendBatchMaxSize = 0
67-
DefCollectorBatchProcessorTimeout = 200 * time.Millisecond
65+
DefCollectorBatchProcessorSendBatchSize = 1000
66+
DefCollectorBatchProcessorSendBatchMaxSize = 1000
67+
DefCollectorBatchProcessorTimeout = 30 * time.Second
6868

6969
DefCollectorExtensionsHealthServerHost = "localhost"
7070
DefCollectorExtensionsHealthServerPort = 13133

test/config/collector/test-opentelemetry-collector-agent.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ processors:
5151
action: add
5252
value: 12345
5353
batch:
54-
send_batch_size: 8192
55-
timeout: 200ms
56-
send_batch_max_size: 0
54+
send_batch_size: 1000
55+
timeout: 30s
56+
send_batch_max_size: 1000
5757

5858
exporters:
5959
otlp/0:

0 commit comments

Comments
 (0)