Skip to content

Commit 47aa76a

Browse files
authored
Update batch processor defaults (#1142)
1 parent e0a9466 commit 47aa76a

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
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/agent/nginx-agent-otel-load.conf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ collector:
2424
host: "127.0.0.1"
2525
port: 4317
2626
processors:
27-
batch: {}
27+
batch:
28+
send_batch_size: 8192
29+
timeout: 200ms
30+
send_batch_max_size: 0
2831
exporters:
2932
otlp:
3033
- server:

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)