Skip to content

Commit d4c1b25

Browse files
committed
Tweak example OTel collector config
1 parent 6553bf7 commit d4c1b25

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

manage-data/data-store/data-streams/tsds-ingest-otlp.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,25 @@ extensions:
4444
username: <user>
4545
password: <password>
4646
exporters:
47-
otlphttp/elasticsearch:
47+
otlphttp/elasticsearch-metrics:
4848
endpoint: <es_endpoint>/_otlp
4949
sending_queue:
5050
enabled: true
51-
sizer: requests
52-
queue_size: 5000
51+
sizer: bytes
52+
queue_size: 50_000_000 # 50MB uncompressed
5353
block_on_overflow: true
5454
batch:
55-
flush_timeout: 5s
56-
sizer: bytes
57-
min_size: 2_000_000
58-
max_size: 5_000_000
55+
flush_timeout: 1s
56+
min_size: 1_000_000 # 1MB uncompressed
57+
max_size: 4_000_000 # 4MB uncompressed
5958
auth:
6059
authenticator: basicauth/elasticsearch
60+
service:
61+
extensions: [basicauth/elasticsearch]
62+
pipelines:
63+
metrics:
64+
exporters: [otlphttp/elasticsearch-metrics]
65+
receivers: ...
6166
```
6267
:::{note}
6368
Only `encoding: proto` is supported, which the `OTLP/HTTP` exporter uses by default.

0 commit comments

Comments
 (0)