-
Notifications
You must be signed in to change notification settings - Fork 73
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
[Change Proposal][Discuss] Support including sample data in packages #348
Comments
Another way to think of the concept you describe above is that packages can reference each other. Basically every package can have data but An alternative proposal is to have references to large files in packages. Either the reference could be manual as a url and the dev is responsible to upload it to the right place or as part of the building / publishing step, these assets are taken out and a reference is added. During the publishing process, it could maybe even decided if the asset should be taken out or not. This would mean the apache package would always reference to sample data but as long as the sample data is not changing, it is only published once. |
The problem I see with referenced files is that we would need to think on where to host these files. And we need to think what happens if they stop being available, or if they are unexpectedly modified. |
To reiterate on the above, I don't see much benefit of hosting the data somewhere externally and including a URL in the package vs hosting the data externally and downloading it upon user's request directly to Kibana. One of the benefits why we considered packages in the first place is that they solve a lot of problems that hosting data that way would bring (scalability / monitoring / latency / security). |
Closing this one by now to avoid having duplicate discussions, sorry if it caused confusion. Let's continue the discussion in #346, and we can reopen this one if we find significative differences or some follow up is needed. |
Currently we allow to include a sample document that is used for documentation purposes. The proposal would be to include more sample data in packages.
This data could be stored in packages in a directory as ndjson files. This data wouldn't be installed by default, but Kibana/Fleet or other tools could make use of this custom data.
To avoid it increasing too much the size of packages, an alternative could be to include this custom data in a new dataset type of package (as the one proposed in #346), that could include some reference to other packages. So if a user or feature needs sample data for apache, dataset packages containing this data could be automatically discovered.
elastic-package
could include some tool to export data in the expected format.This sample data could be used for:
The text was updated successfully, but these errors were encountered: