[Fleet]: Simplify policy preconfiguration #128338
Labels
apm:fleet
enhancement
New value added to drive a business result
Team:Fleet
Team label for Observability Data Collection Fleet team
Describe the feature:
Simplify Fleet policy preconfiguration variables such that they can more easily be used in environment variables, such as in docker-compose.
Users should not need to customise
kibana.yml
to preconfigure a policy. However, at the moment, this is really the only practical way to do so. Preconfiguration of APM and Fleet Server looks something like this:Setting all of that via environment variables is currently impractical.
We have a couple of broad options, which are not mutually exclusive:
xpack.apm.defaultAgentPolicy
which would be APM-specific. APM supports only a single input, so this would allow us to minimise the APM portion of the above preconfiguration to something likexpack.am.defaultAgentPolicy: name:apm-policy vars:host=':8200',secret_token='abc123'
.Some additional thoughts from @joshdover:
xpack.fleet.packages
based on the packages used inxpack.fleet.agentPolicies
Describe a specific use case for the feature:
Users who want to try out the Elastic APM product, or otherwise run Elastic APM, in a small development (laptop) environment with docker-compose.
It should be possible and straightforward to define all required Elastic components (Elasticsearch, Kibana, and Elastic Agent) in docker-compose.yml, alongside the user's APM-instrumented services. Having a working APM product should be possible by just running
docker-compose up -d
in a clean environment. This would:apm
andfleet_server
integration packagesfleet_server
andapm
integrations, with the APM host and secret token injectedThe text was updated successfully, but these errors were encountered: