Skip to content
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

Add dynamic fields in the list of available field in aggregation query editor #20

Closed
fmassot opened this issue Nov 3, 2023 · 3 comments
Assignees

Comments

@fmassot
Copy link
Contributor

fmassot commented Nov 3, 2023

When forging an aggregation query, we need to choose the fields to aggregate on. Currently, the list of proposed fields is limited to fields available in the index doc mapping. But, in the case of a dynamic mapping, this means that most of the fields can be missed. Instead of using the doc mapping to get the list of available fields, we should use the field capabilities endpoint of Quickwit when it will be added.

Endpoint to use: _elastic/{index-id}/_field_caps
Docs: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-field-caps.html

@idrissneumann
Copy link
Collaborator

Image

  • Aggregable fields: true for the second group by field.
  • Date histogram: filter on type datetime

@idrissneumann
Copy link
Collaborator

curl http://localhost:7280/api/v1/_elastic/otel-traces-v0_6/_field_caps

idrissneumann added a commit that referenced this issue Dec 27, 2023
@idrissneumann
Copy link
Collaborator

PR's here: #41

@idrissneumann idrissneumann moved this from Todo to To review in Quickwit grafana datasource 0.4.0 Dec 27, 2023
idrissneumann added a commit that referenced this issue Dec 28, 2023
idrissneumann added a commit that referenced this issue Dec 28, 2023
idrissneumann added a commit that referenced this issue Dec 28, 2023
idrissneumann added a commit that referenced this issue Dec 28, 2023
idrissneumann added a commit that referenced this issue Dec 28, 2023
idrissneumann added a commit that referenced this issue Dec 28, 2023
idrissneumann added a commit that referenced this issue Dec 28, 2023
@fmassot fmassot moved this from To review to Done in Quickwit grafana datasource 0.4.0 Jan 12, 2024
@fmassot fmassot closed this as completed Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants