[beatreceiver] - Disable force_attempt_http2 and map ES config to elasticsearchexporter#46111
[beatreceiver] - Disable force_attempt_http2 and map ES config to elasticsearchexporter#46111VihasMakwana merged 15 commits intoelastic:mainfrom
force_attempt_http2 and map ES config to elasticsearchexporter#46111Conversation
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
force_attempt_http2 and map workers * num_hosts to max_conns_per_hostsforce_attempt_http2 and map ES config to elasticsearchexporter
|
This pull request is now in conflicts. Could you fix it? 🙏 |
|
Added the backport 8.19 label as we should backport beats receivers changes to 8.19 to keep the code structure the same, and allow us to make the switch to beat receivers once we feel it's ready (sometime after it has been stable in 9.x). |
|
@VihasMakwana I just want to point out that I have a test I worked on for delivery guarantees and document-level failures that relies on the sync |
|
This pull request is now in conflicts. Could you fix it? 🙏 |
|
@Mergifyio backport 9.0 9.1 |
✅ Backports have been createdDetails
|
…lasticsearchexporter (#46111) * initial commit * minor change * comments and go.mod * go.mod * comments and notice * tests * remove maxInt * chore: fix tests and add batcher in sending_queue * beatconverter tests * detailed comment * omit force_attempt_http2 for now (cherry picked from commit 02b596f) # Conflicts: # NOTICE.txt # go.mod # go.sum # libbeat/otelbeat/oteltranslate/outputs/elasticsearch/config_otel.go # libbeat/otelbeat/oteltranslate/outputs/elasticsearch/config_otel_test.go # x-pack/filebeat/tests/integration/otel_test.go # x-pack/metricbeat/tests/integration/otel_test.go
…lasticsearchexporter (#46111) * initial commit * minor change * comments and go.mod * go.mod * comments and notice * tests * remove maxInt * chore: fix tests and add batcher in sending_queue * beatconverter tests * detailed comment * omit force_attempt_http2 for now (cherry picked from commit 02b596f) # Conflicts: # NOTICE.txt # go.mod # go.sum
…lasticsearchexporter (#46111) * initial commit * minor change * comments and go.mod * go.mod * comments and notice * tests * remove maxInt * chore: fix tests and add batcher in sending_queue * beatconverter tests * detailed comment * omit force_attempt_http2 for now (cherry picked from commit 02b596f) # Conflicts: # NOTICE.txt # go.mod # go.sum # x-pack/filebeat/tests/integration/otel_test.go # x-pack/metricbeat/tests/integration/otel_test.go
…lasticsearchexporter (#46111) * initial commit * minor change * comments and go.mod * go.mod * comments and notice * tests * remove maxInt * chore: fix tests and add batcher in sending_queue * beatconverter tests * detailed comment * omit force_attempt_http2 for now
… and map ES config to elasticsearchexporter (#46533) * [beatreceiver] - Disable `force_attempt_http2` and map ES config to elasticsearchexporter (#46111) * initial commit * minor change * comments and go.mod * go.mod * comments and notice * tests * remove maxInt * chore: fix tests and add batcher in sending_queue * beatconverter tests * detailed comment * omit force_attempt_http2 for now (cherry picked from commit 02b596f) # Conflicts: # NOTICE.txt # go.mod # go.sum * merge conflicts --------- Co-authored-by: Vihas Makwana <121151420+VihasMakwana@users.noreply.github.com> Co-authored-by: Vihas <vihas.makwana@elastic.co>
…` and map ES config to elasticsearchexporter (#46534) * [beatreceiver] - Disable `force_attempt_http2` and map ES config to elasticsearchexporter (#46111) * initial commit * minor change * comments and go.mod * go.mod * comments and notice * tests * remove maxInt * chore: fix tests and add batcher in sending_queue * beatconverter tests * detailed comment * omit force_attempt_http2 for now (cherry picked from commit 02b596f) # Conflicts: # NOTICE.txt # go.mod # go.sum # x-pack/filebeat/tests/integration/otel_test.go # x-pack/metricbeat/tests/integration/otel_test.go * merge conflicts * merge conflicts --------- Co-authored-by: Vihas Makwana <121151420+VihasMakwana@users.noreply.github.com> Co-authored-by: Vihas <vihas.makwana@elastic.co>
Proposed commit message
This PR fixes the presets for otel mode by disabling
force_attempt_http2and mapping the libbeat'sworkersto upstream'smax_conns_per_hostssetting.It also updates go.mod to latest collector release.
It also moves the
batcherconfig tosending_queueas the previous way is deprecated.Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.Disruptive User Impact
How to test this PR locally
To test the total number of connections to the ES host opened by the process, you can follow these steps:
lsof -iTCP -nP | grep pidand it should show you the the number of open tcp connections.Run
filebeat otel inspectcommand and it will output following config:Related issues