-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Fleet] POC - Add support for OTEL policies and integrations #193889
Conversation
🤖 Jobs for this PR can be triggered through checkboxes. 🚧
ℹ️ To trigger the CI, please tick the checkbox below 👇
|
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
version: { type: 'keyword' }, | ||
}, | ||
}, | ||
vars: { type: 'flattened' }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting, does flattened
work for complex data types? Or we do some additional processing for these when reading the saved object?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it works well for complex data types and it doesn't need additional processing. We're already using it for existing mappings.
Closing as the POC is considered completed |
Summary
🚧 🚧 POC - DO NOT MERGE! 🚧 🚧
Experimental API support of OTEL policies and integrations in Fleet UI
Create new OTEL integration
This endpoint allows to load a yml file containing the configs. The content is parsed to json and saved in a new SO. THis is just a way to "mock" the installation of an OTEL integration.
Usage:
Verify that it's saved with
GET .kibana_ingest/_search?q=type:fleet-otel-integrations
Create new OTEL policy
This endpoint allows to create a new OTEL policy.
Verify that it's saved with
GET .kibana_ingest/_search?q=type:fleet-otel-policies
Retrieve full agent policy
The generated config is nested under
inputs
and merged with the regular inputs. It also retrieves the "installed" template from thefleet/otel/integrations
and adds it underextensions
. This is something that can be changed easily if needed.Considerations
This is by no means production ready code. It needs some additional things:
exporters
that take the ES outputs and parses it to the correct OTEL formatAlso the code organization needs to be improved, I hacked my way trough the code to make the POC work :)