quickwit-oss / quickwit-oss/quickwit-datasource
Handling several indexes per datasource
Open
@ddelemeny is already working on this.
Since Feb 11, 2024.
- Dominant language
- TypeScript
- Stars
- 76
- Forks
- 44
- PR merge metrics
- No merged PRs in 30d
Description
Currently, a quickwit datasource requires to define an index.
We want a user to be able to query different indexes (using the index pattern) or query multiple indexes with a single datasource.
Here is the proposed spec.
Datasource parameters
- timestamp field(mandatory): This field is used across all views and ensures that all indexes used are on the same timestamp field. We could make it optional but we currently don't support querying multiple indexes with different timestamp fields.
- timestamp output format (mandatory): we don't want the user to set this value, but I think we don't really have the choice for now. This format is used by the Grafana plugin to show correctly the datetime. We could guess the format at the backend plugin level though.
- default index(optional): either an index ID or an index pattern or empty.
Query builder
We should add an index field filled with the default value in the query builder.
Validation
If an index or index pattern is defined, we can validate the timestamp field and timestamp field output format.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.