-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DO NOT MERGE] Standalone Beats OTel collector PoC #41001
Conversation
Format files, update NOTICE.txt
This commit improves the TLS handling by reading all certificates and passing them as PEM strings to the OTel configuration and some other fields are better handled in the configuration. The tests are improved.
commit 16ecdee682027804deddd108a0229fbfe57a9013 Author: Vihas Makwana <[email protected]> Date: Thu Sep 26 11:49:02 2024 +0530 go.mod commit c2aa64b Merge: b92b041 cc9b664 Author: Vihas Makwana <[email protected]> Date: Thu Sep 26 11:29:28 2024 +0530 Merge branch 'beats-otel-collector' into esotel-beats commit b92b041 Merge: 126aa22 7cc59c9 Author: Vihas Makwana <[email protected]> Date: Thu Sep 26 11:22:14 2024 +0530 Merge branch 'lee/fbreceiver' into esotel-beats commit 7cc59c9 Merge: 6aeba30 a08e9c1 Author: Vihas Makwana <[email protected]> Date: Thu Sep 26 11:21:51 2024 +0530 Merge branch 'fbreceiver' of github.com:leehinman/beats into lee/fbreceiver commit a08e9c1 Author: Lee Hinman <[email protected]> Date: Wed Sep 25 17:21:28 2024 -0500 add debug and enable benchmark input on windows commit bb7aaf2 Author: Lee E. Hinman <[email protected]> Date: Wed Sep 25 14:16:57 2024 -0500 increase timeout for fbreceiver test, and make sure logs are current commit f493764 Author: Lee E. Hinman <[email protected]> Date: Wed Sep 25 11:22:46 2024 -0500 add slices and test cases for mapstrToPcommonMap commit 71f6deb Author: Blake Rouse <[email protected]> Date: Tue Sep 24 20:27:55 2024 -0400 Update config_test.go commit f354cb4 Author: Lee E Hinman <[email protected]> Date: Tue Sep 24 15:09:50 2024 -0500 Update x-pack/filebeat/fbreceiver/config.go Co-authored-by: Blake Rouse <[email protected]> commit d41c801 Author: Lee E Hinman <[email protected]> Date: Tue Sep 24 15:09:40 2024 -0500 Update x-pack/filebeat/fbreceiver/config.go Co-authored-by: Blake Rouse <[email protected]> commit 9103b0b Author: Lee E. Hinman <[email protected]> Date: Tue Sep 24 14:33:49 2024 -0500 update notice.txt commit bd0cbfd Author: Lee E. Hinman <[email protected]> Date: Tue Sep 24 14:22:21 2024 -0500 linter fixes commit 38715e2 Author: Lee E. Hinman <[email protected]> Date: Thu Sep 19 14:20:57 2024 -0500 Add filebeat receiver and otel consumer output commit dbbfb5b Author: Julien Lind <[email protected]> Date: Wed Sep 25 19:34:34 2024 +0200 Revert "[filebeat] Fix long filepaths in diagnostics exceeding max path limit…" (#40980) This reverts commit d82fe9a. commit 126aa22 Author: Vihas Makwana <[email protected]> Date: Wed Sep 25 19:12:09 2024 +0530 chore: initial commit commit 378b796 Author: Olga Naydyonock <[email protected]> Date: Wed Sep 25 13:31:35 2024 +0300 added pre-commit to x-pack/agentbeat (#40965) commit 1e6364a Author: Klim Markelov <[email protected]> Date: Wed Sep 25 12:26:16 2024 +0200 Change codeowners from ent-search-application to app-search-team (#40963) commit 6aeba30 Author: Blake Rouse <[email protected]> Date: Tue Sep 24 20:27:55 2024 -0400 Update config_test.go commit 55e5375 Author: Lee E Hinman <[email protected]> Date: Tue Sep 24 15:09:50 2024 -0500 Update x-pack/filebeat/fbreceiver/config.go Co-authored-by: Blake Rouse <[email protected]> commit d7a5211 Author: Lee E Hinman <[email protected]> Date: Tue Sep 24 15:09:40 2024 -0500 Update x-pack/filebeat/fbreceiver/config.go Co-authored-by: Blake Rouse <[email protected]> commit 38d1b5d Author: Lee E. Hinman <[email protected]> Date: Tue Sep 24 14:33:49 2024 -0500 update notice.txt commit 931d661 Author: Lee E. Hinman <[email protected]> Date: Tue Sep 24 14:22:21 2024 -0500 linter fixes commit a74d26f Author: Lee E. Hinman <[email protected]> Date: Thu Sep 19 14:20:57 2024 -0500 Add filebeat receiver and otel consumer output
It converts all configs which have a direct translation and assumes `topic` is a single topic, not a template
1e0e3a3
to
52b1110
Compare
Attaching a demo of docker autodiscovery using Untitled_Project_V1.mp4cc: @cmacknz |
Update elasticsearch.ToOTelConfig to return a map[string]any, fix tests and update the code to use the new returned type.
Some key points regarding converting the Elasticsearch output configuration to the Elasticsearch OTel exporter:
Testing the output config conversionThere is a test on |
Kafka config converter key points:
|
…beats-otel-collector
Convert all the "output" translation functions to return a map[string]any without any redacted field.
Folks, I've been trying to test it but I could not get my ES config translation function to work/be called, so I made some changes, now it is used, however as it is it's first test, there are some issues I haven't fixed yet. Currently I'm using a hack to get the ES output configuration and use it as OTel ES exporter:
The way I'm testing/running:
I can see the config is correctly parsed, converted and used to create an Elasticsearch exporter, however the index seems to be missing. If you let it running for a while you'll get an error from the exporter. |
Fix the ES output transformation so it is actually used when running the example and add an example filebeat.yml
I finally managed to get all the different bits working together 🎉 TL;DR:
Known issues:
|
This PoC got polished and finalized in #41849 |
This is the results of our experiment embedding OTel collector into Beats for running them in the standalone mode.
--
Steps to run filebeat in otel mode:
filebeat
binary withmage package
The filebeat-otel mode makes use of
filebeatreceiver
and config of that same as that of standalone filebeat.Currently, we are using hardcoded OpenTelemetry configurations, as the conversion from Filebeat to OpenTelemetry is nearly complete. There are still a few remaining tasks to address, and we’re actively working on them.