Skip to content

Commit

Permalink
add example with changing send_batch_size in batch processor (#3236)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmolenda-sumo authored Sep 6, 2023
1 parent 6f37929 commit 8964ea5
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions docs/best-practices.md
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,38 @@ formulas:

#### Example configuration

Here is an example configuration to change `send_batch_size`, `send_batch_max_size`, and `timeout` for logs metadata otelcol, metrics
metadata otelcol and logs collector otelcol

```yaml
metadata:
logs:
config:
merge:
processors:
batch:
timeout: 10s
send_batch_size: 1_024
send_batch_max_size: 2_048
metrics:
config:
merge:
processors:
batch:
timeout: 10s
send_batch_size: 1_024
send_batch_max_size: 2_048
otellogs:
config:
merge:
processors:
batch:
timeout: 10s
send_batch_size: 1_024
send_batch_max_size: 2_048
```

Below there is example configuration to change `sending_queue` for metrics metadata otelcol, logs metadata otelcol and logs collector
otelcol

Expand Down

0 comments on commit 8964ea5

Please sign in to comment.