-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] Simplified preconfigured agent policies #124030
Comments
Pinging @elastic/fleet (Team:Fleet) |
Copying here the use case proposed by @kuisathaverat: GIVEN a user wants to connect an APM agent
THEN a new policy is created with id apm-default-policy ready to use with an Elastic Agent |
the approach suggested by @nchaulet at #108456 (comment) is also a good one. |
@juliaElastic this looks great. A couple of questions. Would it be reasonable to make the agent policy name optional, and have it default to the policy ID? Let's say I want a single agent policy with fleet_server and apm packages. The fleet_server package can have defaults, while we want to set some vars for apm. How might that look? I can imagine Fleet being able to handle something like this:
This would require:
As mentioned in #128338, what I'm hoping to do is simplify preconfiguration via environment variables. The above would be something like:
Still not as terse as I'd like, but certainly better than what's possible today. Can we do better? |
@axw Thanks for the suggestions. I agree with Josh's comments here: first it would be best to try to simplify the existing config by making fields optional and set defaults (e.g. no need to specify packages that are already mentioned in package_policies), instead of coming up with new config options. |
Please consider using the same yaml configuration for the policies retreived by api/fleet/agent_policies/ so that we can create policies in the UI and then be able to paste them into out deployment under xpack.fleet.agentPolicies We are really struggling to get our policies yaml's right, add them to git and deploy them in ECK. Kibana complains about the format beeing incorrect. |
I agree with @GeorgeGkinis it would be nice to have a way to export into YAML. Or make the documentation more clear. For example installing the package elastic defend is a huge pain right now. |
In #108456 we remove Default policies and integrations, which impacts a few dependent projects, that in turn have to preconfigure their agent policies.
https://github.com/elastic/observability-test-environments/issues/2030
elastic/elastic-package#655
elastic/e2e-testing#2039
These preconfigured agent policies are repeated in a few places, and it would be easier to offer a simplified preconfiguration to avoid copying the long agent policy config.
Current preconfiguration:
Proposed preconfiguration:
The text was updated successfully, but these errors were encountered: