-
Notifications
You must be signed in to change notification settings - Fork 72
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
[ILM] Support custom ILM policies #128
Comments
@simitt I'm currently working on the overall structure for all integrations, and looks like APM could fit the proposed structure. I'll share the doc with you and we can chat about details next week. |
* Adding section + HOWTO doc stub for system testing * Fleshing out the HOWTO a bit * More fleshing out * Adding table * Done fleshing out * Removing trailing newlines * Clarify conceptual instructions a bit * Remove redundant eval * Using commas+emdash instead of semicolons+commas * More clarifications * s/package/data stream/
@sorantis do you have an update on this? APM is working on integrating with Elastic Agent and Fleet in |
@simitt This document outlines the user journeys related to choosing ILM policies for integrations. cc @mostlyjason Specifically to package-spec, I don't think there's any defined section today for ILM policies. I've been checking the recent work for adding ML jobs to integrations . I wonder if we can follow a similar pattern here and add an ILM asset to package spec, as we have done for ML job. @ruflin @mtojek thoughts? |
We already support ILM policies as part of the package-spec today AFAIK. We have that in the endpoint package but there it is a fully "managed" ILM policy meaning we always overwrite it. APM is different here. It is not necessarily about shipping and ILM policy but how to make sure the ILM policy setting is not overwritten on each package upgrade. |
Allowing users to customize their ILM policies will probably be interesting for other integrations too. APM shouldn't be different here, it just already supported this feature. The default ILM policies should be overwritten if they change on an upgrade, but if users provide custom policies then they should not be overwritten. |
Sorry, what I meant is that APM is different from the ILM part we do for endpoint where it is an "internal" ILM policy which is not expected to be modified by any user and always overwritten. Searching for this issue I stumbled over elastic/kibana#72986 which is also more similar to the package spec change. Instead what I think we need for APM is likely to be purely in Fleet. I'll follow up shorty with a potential proposal. |
My two cents on custom ILM policies (and perhaps also dashboards). I can see two distinct cases that I think should be clarified.
|
Following up on Dimitri's comment above: I am assuming the specific use case here is to allow different solution users have a control on the data retention. For example, for an APM solution in a single elastic deployment, thee are N datastreams that get created and users want a retention policy other than what apm-server integration ships by default. In current UX, they create a new ILM policy and assign it to the datastreams, somewhere in stack management UI. In future, we will simplify this experience by integrating assigning ILM policies within integrations UI. The question of what should be the experience for editing the default assets - ILM policies, dashboards, index templates, ML jobs - that ship with a package is something that has been under discussion in the package lifecycle management google group. So to summarize, fleet should support retaining modified assets ( we can restrict that to be ILM policies for now) during package upgrade workflow. |
With the support of custom component templates elastic/kibana#90454, this feature is generally supported, therefore closing this issue. |
APM Server allows users to configure custom policies per event type since
7.5
. Before that, users had to follow a manual ILM setup guide to customize their policies. We have had a couple of user requests to automatically support this.Beats removed the versions of ILM policies in
7.6
since custom ILM policies have been overwritten on every upgrade, leading to bad surprises and unwanted behavior.Let's ensure that users don't experience the same pain when switching to managed beats/APM Server.
(1) As long as custom ILM policies are not supported as part of fleet, we have to ensure that users' custom ILM policies are not overwritten on version upgrade.
(2) Add support for custom ILM policies per data stream in packages and Fleet.
cc @sorantis would be great to get your input on this.
The text was updated successfully, but these errors were encountered: