-
Notifications
You must be signed in to change notification settings - Fork 958
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
Creating sample packages #1747
Comments
Thanks @BT-93! I like the idea of making this more accessible. If nothing else, I can imagine a use case where plugins would want to have sample packages/sample data for the specific plugin use case (e.g., the observability plugin would probably like to have bespoke sample data to best highlight their capabilities/features) in a more accessible manner. @BT-93 were you thinking about a solution locally (e.g., for use in just your instance) or did you want to see a solution where you can add sample packages to the distro or share with the community? The latter seems like the ideal future state, but we would have to think through how someone in the community could easily create a sample packages/data (implementation) and then how the community would access them or include them in their instance (access/sharing model). We don't want to bloat the experience of course, but I could see a world where there is a catalog of available samples across use case, plugin, etc. |
@kgcreative @kavilla @ashwin-pc I think we've talked about similar ideas in the past - do you have any thoughts? |
@BT-93 I'm not entirely sure i understand the ask here. Are you referring to
Loading a plugin dynamically from the Dashboard is not a feature we have today but is being discussed in #287. As for loading sample data, even the existing sample data feature simple performs a bulk upload to upload sample data. This feature can be mimicked easily using the existing data plugin once your sample plugin is scaffolded. The example plugins are a good way to see how to build such a plugin. |
@ahopp I too am in favour of the latter you mentioned. I don't have a solution locally I've been digging around to try and work out how the samples are created currently. My script just sends random data with relative timestamps between dates to OS. @ashwin-pc My request was a bit vague. I'm interested in how it currently works so I can mimic something in the meantime. I'm also interested in a way to create community sample packages containing data, visuals, etc. |
While this is a different intended use case, it has some overlap with basic UI support for importing data: #1791 |
@BT-93 Thanks for the clarification. We can go many different ways to achieve what you are looking for. From a project perspective the most useful feature here would be as @joshuarrrr mentioned a plugin that can import static data. This wont address your concern for timestamps but it should make loading data a lot easier for testing purposes. for your specific issue here, I can reccomend two approaches.
Installing sample data is handled in https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/src/plugins/home/server/services/sample_data/routes/install.ts#L0-L1 which you can reference for your use case if you decide to go with the second approach. |
@BT-93 Does @ashwin-pc comment make sense? Anything else you need? |
@ahopp Yes it does, thanks! All good. Thanks all for the info. |
@Flyingliuhub this might align with what playground and create generic way to support ingestion example for user e.g. demo for plugin. |
Is your feature request related to a problem? Please describe.
Just like the sample packages that come with OSD, I'd like to create my own sample package.
Describe the solution you'd like
A way to implement a sample package with sample data, where timestamp fields are replenished with current times.
Describe alternatives you've considered
¯_(ツ)_/¯
I use a script atm but would be great for demo purposes to have this inbuilt.
Additional context
The text was updated successfully, but these errors were encountered: