-
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] Honor value of source_mode
for data streams
#141211
Comments
Pinging @elastic/fleet (Team:Fleet) |
@kpollich @jen-huang would it be possible to make it happened in one of the two next sprints? |
Blocked by #143198 |
As soon as this feature lands, I expect packages to adopt synthetic source for metrics. As synthetic source is only available in newer versions of Elasticsearch, it would mean these packages have to require a newer compatibility version. This is fine for new packages. For older packages, it would be nice if these could set synthetic_source but not have to change the compatibility, instead it would be handled by Fleet. Lets assume synthetic source is available in 8.20 (made up number), the package has compatibility to 7.17. As soon as the user upgrades to 8.20, data streams are rolled over (not a must) and and synthetic source is added to the template. Even though synthetic source is already available in 8.15 (made up number) as experimental, it would not be enabled there. @jsoriano Do we need an additional flag to enable synthetic source for releases where it is still experimental for testing purpose? Or is the feature in Fleet to enable it enough? |
@criamico when you pick this up, the test package |
This also means we'll need to honor the value of this setting during package installation. The package manifest is the source of truth here. The UI toggles are just a convenience for maintainers. |
I think both |
I'm reopening this issue as it seems there are still issues around using this feature. The issue should still open until the current issues are resolved: #147368 (comment) |
Moving to the current sprint (5) |
@nchaulet can you take a look at this one and see what is missing? If I understood Ruflin's comment correctly this can be closed. |
@jlind23 As described in #147368 (comment) on my end it still does not work as expected. |
Yes there is still a bug, when the package policy package version, is not the same as the package installed version, I am working on fix, and will test this thoroughly. |
@ruflin I tested it on my side and I think #148292 fixed this. With elastic/integrations#4749 it give me this for system.memory datastream: |
@nchaulet Is #148292 the fix for #141211 (comment) ? In the PR, it doesn't really mention any details around this and how it would be fixed. Happy to test it on my side but if the PR fixes the issue, the issue should be described and how it is fixed. |
Yes #148292 fix it as a side effect, the UI was previously settings synthetic source to false if the package was defining index mode time_series, (updated the PR too) |
I tested this on my end again. It seems the UI shows now the correct things, but when I look at the templates or the data stream (even after rollover), I can't find anywhere |
I stepped through the testing instructions on #148292 and it seems like the index template settings are working as expected when the synthetic source and TSDB flags come from the package manifest, but we have a regression with the actual toggle values. I created a new Nginx integration policy on |
In elastic/package-spec#419, we introduced the
source_mode
field for data streams, which allows packages to opt in to synthetic_source
. Fleet also includes a UI toggle for this value for each data stream as of #140095.Per the package spec, if the
source_mode
for a given data stream issynthetic
- The UI toggle defaults toenabled
and is editable by the userundefined
- The UI toggle defaults todisabled
and is editable by the userdefault
- The UI toggle defaults todisabled
and is not editable by the userThe text was updated successfully, but these errors were encountered: